Skip to content

Commit

Permalink
Try again on release logic
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender committed Aug 21, 2023
1 parent cdf6168 commit 45e4fa6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main
pull_request:
release:
types: [ published ]
types: [published]

jobs:
build:
Expand Down Expand Up @@ -83,7 +83,6 @@ jobs:
runs-on: ubuntu-latest
needs:
- installers
if: github.event.release.published
steps:
- uses: actions/checkout@v3

Expand All @@ -100,6 +99,7 @@ jobs:
run: tree artifacts

- name: Generate artifact zips
if: env.RELEASE == 'true'
run: |
cd ${{ github.workspace }}/artifacts || exit 1
DIRS=$(find . -type d -name 'chia-exporter*')
Expand All @@ -109,6 +109,7 @@ jobs:
done <<< "$DIRS"
- name: Upload Release Artifacts
if: env.RELEASE == 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand All @@ -124,7 +125,7 @@ jobs:
artifacts/installer-chia-exporter*/*.deb
- name: Trigger apt repo update
if: "!github.event.release.prerelease"
if: env.FULL_RELEASE == 'true'
run: |
curl -s -XPOST -H "Authorization: Bearer ${{ secrets.GLUE_ACCESS_TOKEN }}" --data '{"release_version":"${{ env.RELEASE_TAG }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/chia-exporter/${{ github.sha }}/start
curl -s -XPOST -H "Authorization: Bearer ${{ secrets.GLUE_ACCESS_TOKEN }}" --data '{"release_version":"${{ env.RELEASE_TAG }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/chia-exporter/${{ github.sha }}/success/deploy

0 comments on commit 45e4fa6

Please sign in to comment.