Skip to content

Commit

Permalink
Fix gh-release job assets and remove unnecessary artifact downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
theRookieCoder committed Feb 24, 2024
1 parent 1570814 commit 817a862
Showing 1 changed file with 19 additions and 32 deletions.
51 changes: 19 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
path: ./out

- name: Create sha256sum for Scoop
run: sha256sum ./out/ferium-windows-msvc.zip | cut -d ' ' -f 1 > ./out/ferium-windows-msvc.zip.sha256
run: sha256sum ./out/**/ferium-windows-msvc.zip | cut -d ' ' -f 1 > ./out/ferium-windows-msvc.zip.sha256

# Remove the dots for the markdown header
- name: MD Header
Expand All @@ -47,7 +47,7 @@ jobs:
- name: Create release
uses: softprops/action-gh-release@v1
with:
files: ./out/*
files: ./out/**
name: Ferium ${{ env.TAG }}
tag_name: ${{ env.TAG }}
body: |
Expand All @@ -67,18 +67,12 @@ jobs:
aur-update:
runs-on: ubuntu-latest
needs: gh-release
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download artifacts
uses: dawidd6/action-download-artifact@v3
with:
workflow_conclusion: success
workflow: build.yml
path: ./out

- name: Get the latest tag
run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV

Expand All @@ -99,26 +93,19 @@ jobs:
commit_email: [email protected]
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}

homebrew-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Download artifacts
uses: dawidd6/action-download-artifact@v3
with:
workflow_conclusion: success
workflow: build.yml
path: ./out

- name: Get the latest tag
run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV

- name: Update Homebrew formula
uses: mislav/bump-homebrew-formula-action@v3
with:
tag-name: ${{ env.TAG }}
env:
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
# homebrew-update:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0

# - name: Get the latest tag
# run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV

# - name: Update Homebrew formula
# uses: mislav/bump-homebrew-formula-action@v3
# with:
# tag-name: ${{ env.TAG }}
# env:
# COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}

0 comments on commit 817a862

Please sign in to comment.