Skip to content

Commit

Permalink
Make release separate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Jul 25, 2022
1 parent 864b8cc commit b8c04da
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: CI
on:
push:
branches: [main]
tags:
- 'v*'
pull_request:

env:
Expand Down Expand Up @@ -59,14 +57,3 @@ jobs:
working-directory: ${{ env.galaxy-name }}
env:
MOLECULE_DISTRO: ${{ matrix.distro }}

release:
name: Publish to ansible-galaxy
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
needs: [pre-commit, molecule]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: robertdebock/galaxy-action@1.0.3
with:
galaxy_api_key: ${{ secrets.GALAXY_API_KEY }}
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
push:
tags:
- 'v*'

env:
galaxy-name: "marvel-nccr.aiida-cws"

jobs:

pre-commit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- uses: pre-commit/action@v2.0.0

release:
name: Publish to ansible-galaxy
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
needs: [pre-commit]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: robertdebock/galaxy-action@1.2.1
with:
galaxy_api_key: ${{ secrets.GALAXY_API_KEY }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ Please direct inquiries regarding Quantum Mobile and associated ansible roles to
- migrate tasks from `marvel-nccr.simulationbase` (understand `hostname.yml`, which is non-container only, and `clean.yml`)
- double-check when to use `apt: clean` and `apt: upgrade`, etc
- Get <https://github.com/quanshengwu/wannier_tools> on Conda, to replace `marvel-nccr.wannier_tools`
- allow for source install of aiida-core (as previous)
- output "raw" pseudo-potential files to aiida_data_folder_user

- run code tests (how to check success <https://github.com/aiidateam/aiida-common-workflows/issues/289>?):
- `aiida-common-workflows launch relax abinit -S Si -X abinit.main -n 2`
Expand Down

0 comments on commit b8c04da

Please sign in to comment.