Skip to content

Commit

Permalink
Update binary package prior to release
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplyDanny committed Jul 9, 2024
1 parent 2d45bd0 commit a93111a
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,26 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4
- name: Update binary package
run: >
sed -i ''
-e "s#/[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}/#/${{ github.event.client_payload.tag }}/#"
-e "s/[a-fA-F0-9]\{64\}/${{ github.event.client_payload.checksum }}/"
Package.swift
- name: Configure author
run: |
git config --global user.name SimplyDanny
git config --global user.email null
- name: Commit
run: |
git add Package.swift
git commit -m "Release ${{ github.event.client_payload.tag }}"
- name: Push changes
run: git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: ncipollo/release-action@v1
with:
name: ${{ github.event.client_payload.title }}
Expand Down

0 comments on commit a93111a

Please sign in to comment.