Skip to content

Commit

Permalink
Use upload instead release + list of packed files
Browse files Browse the repository at this point in the history
  • Loading branch information
CAMOBAP committed Jan 2, 2024
1 parent 7720e1b commit c91378f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ jobs:
with:
path: snap

- run: |
sudo apt update
sudo apt install -y squashfs-tools
unsquashfs -d extract ${{ steps.snapcraft.outputs.snap }}
ls -R extract
- uses: actions/upload-artifact@v3
with:
name: latexml-snap
Expand Down Expand Up @@ -66,7 +72,7 @@ jobs:
run: |
echo "${SNAPCRAFT_TOKEN}" > .snapcraft_token
snapcraft login --with .snapcraft_token
snapcraft push --release=stable snap/*.snap
snapcraft upload --release=stable snap/*.snap
release-edge:
if: github.ref == 'refs/heads/master'
Expand All @@ -87,7 +93,7 @@ jobs:
run: |
echo "${SNAPCRAFT_TOKEN}" > .snapcraft_token
snapcraft login --with .snapcraft_token
snapcraft push --release=edge snap/*.snap
snapcraft upload --release=edge snap/*.snap
release-candidate:
if: startsWith(github.ref, 'refs/tags/v') && endsWith(github.ref, 'pre')
Expand All @@ -108,4 +114,4 @@ jobs:
run: |
echo "${SNAPCRAFT_TOKEN}" > .snapcraft_token
snapcraft login --with .snapcraft_token
snapcraft push --release=candidate snap/*.snap
snapcraft upload --release=candidate snap/*.snap

0 comments on commit c91378f

Please sign in to comment.