Skip to content

Commit

Permalink
refactor: Deployment Workflow
Browse files Browse the repository at this point in the history
This breaks up, cleans up, and aligns the deploy workflow with the rest of the
refactoring. Further work could be done to consolidate deploy/release as they
are quite similar, but that can be left as a future exercise
  • Loading branch information
techman83 committed May 4, 2024
1 parent 81c6925 commit d1741df
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,23 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v4
#- name: Check version
# id: check-version
# shell: bash
# run: |
# VERSION=$(egrep '^\s*\#\#\s+v.*$' CHANGELOG.md | head -1 | sed -e 's/^\s*\#\#\s\+v//' -e 's/-.*$//')
# if [[ $VERSION =~ [13579]$ ]]
# then
# echo 'odd-build=true' >> $GITHUB_OUTPUT
# fi
- id: check-version
run: echo 'odd-build=false' >> $GITHUB_OUTPUT
- name: Check version
id: check-version
shell: bash
run: |
VERSION=$(egrep '^\s*\#\#\s+v.*$' CHANGELOG.md | head -1 | sed -e 's/^\s*\#\#\s\+v//' -e 's/-.*$//')
if [[ $VERSION =~ [13579]$ ]]
then
echo 'odd-build=true'
fi
- uses: actions/download-artifact@v4
with:
name: Release-repack-unsigned
path: _build/repack/
- name: Credentials
id: credentials
run: echo 'credentials=true' >> $GITHUB_OUTPUT
run: echo 'credentials=false'
#run: echo 'credentials=false' >> $GITHUB_OUTPUT
if: ${{ env.AWS_ACCESS_KEY_ID && env.AWS_SECRET_ACCESS_KEY }}
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
Expand Down

0 comments on commit d1741df

Please sign in to comment.