Skip to content

Commit

Permalink
Update Docker Compose yaml to releases (#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgeoghegan committed Jun 13, 2024
1 parent 5d3c317 commit 8185776
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/cli-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@ env:
CARGO_TERM_COLOR: always

jobs:
upload-compose-yaml:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Resolve inputs
id: resolve-inputs
# Use tag input if available, otherwise parse it out of the git ref
run: |
TAG_INPUT=${{ inputs.tag }}
echo "tag=${TAG_INPUT:-${GITHUB_REF/refs\/tags\//}}" >> $GITHUB_OUTPUT
- name: Publish
env:
GH_TOKEN: '${{ secrets.DIVVIUP_GITHUB_AUTOMATION_RELEASE_PAT }}'
run: |
gh release upload ${{ steps.resolve-inputs.outputs.tag }} compose.yaml
build-cli:
defaults:
run:
Expand Down Expand Up @@ -65,7 +82,7 @@ jobs:
strip: true
- name: Publish
env:
GH_TOKEN: '${{ secrets.DIVVIUP_GITHUB_AUTOMATION_RELEASE_PAT }}'
GH_TOKEN: '${{ secrets.DIVVIUP_GITHUB_AUTOMATION_RELEASE_PAT }}'
run: |
cp target/${{ steps.resolve-inputs.outputs.triple }}/release/divviup${{ matrix.target.extension }} \
./${{ steps.resolve-inputs.outputs.executable }}
Expand Down

0 comments on commit 8185776

Please sign in to comment.