Skip to content

Commit

Permalink
Merge pull request #17 from crichez/fix/20240807publish-workflow-fix1
Browse files Browse the repository at this point in the history
Fix syntax and varaible subs in workflow file.
  • Loading branch information
crichez authored Aug 7, 2024
2 parents 5339c38 + 43729c6 commit 877b1f1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
name: Deploy collection to galaxy
name: publish
on:
release:
types:
Expand All @@ -10,18 +9,18 @@ jobs:
name: Publish to Galaxy
runs-on: ubuntu-latest
steps:
- uses: checkout@v4
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

- name: Build collection
run: ansible-galaxy collection build

- name: Get expected version string
shell: VERSION=$(echo ${{ github.ref_name }} | sed -e 's/v\(.*\)/\1/'
shell: echo "VERSION={$GITHUB_REF_NAME:1}" >> "$GITHUB_ENV"

- name: Publish to Galaxy
run: |
ansible-galaxy collection publish \
tofugarden-secureboot-$VERSION.tar.gz \
tofugarden-secureboot-${{ env.VERSION }}.tar.gz \
--token ${{ secrets.GALAXY_API_KEY }}

0 comments on commit 877b1f1

Please sign in to comment.