Skip to content

Commit

Permalink
udpate action
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Sep 14, 2023
1 parent a1b3bd6 commit a1f2094
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release-snap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -40,12 +39,10 @@ jobs:
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- name: make snapcraft
run: |
sed -i 's/{VERSION}/${{ steps.version.outputs.version }}/g' .github/workflows/snapcraft
cat ./.github/workflows/snapcraft
sed -i 's/{VERSION}/${{ steps.version.outputs.version }}/g' snapcraft.yaml
cat snapcraft.yaml
- uses: snapcore/action-build@v1
id: build
with:
path: .github/workflows/snapcraft
- uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
Expand Down

0 comments on commit a1f2094

Please sign in to comment.