chore: Update alpha.yml workflow to output version and move releases.xml

This commit is contained in:
mauro 🤙
2024-09-03 21:04:10 +00:00
parent 37adddc0ed
commit 7636a1f015
2 changed files with 6 additions and 6 deletions

View File

@@ -443,7 +443,7 @@ jobs:
if: ${{ github.event.inputs.create_release == 'true' }}
permissions: write-all
name: Release Flatpak
needs: [prepare-flatpak]
needs: [prepare-flatpak, build-data]
runs-on: ubuntu-latest
steps:
@@ -525,10 +525,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Clone flatpak repo
- name: Clone repo
uses: actions/checkout@v4
with:
repository: flathub/io.github.zen_browser.zen
token: ${{ secrets.DEPLOY_KEY }}
- name: Setup git
@@ -547,8 +546,8 @@ jobs:
name: zen.macos-x64.dmg
- name: Update zen-browser Cask
run: sh .github/workflows/src/update-homebrew.sh
run: sh .github/workflows/src/update-homebrew.sh ${{ needs.build-data.outputs.version }}
- name: Clean up
run: |
rm -rf zen.macos-x64.dmg

View File

@@ -1,4 +1,5 @@
latest_version=$(git describe --tags --abbrev=0)
latest_version=$1
sed -i "s/version(.*)/version('${latest_version}')/" ./Casks/zen-browser.rb
sha_x64=$(shasum -a 256 zen.macos-x64.dmg)