Skip to content

fix: remove uv-dev

fix: remove uv-dev #11

name: Release
on:
# Run the workflow each time new commits are pushed to the candidate branch.
push:
branches: [ "candidate", "beta", "edge" ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
issues: write
jobs:
get-architectures:
name: πŸ–₯ Get snap architectures
runs-on: ubuntu-latest
outputs:
architectures: ${{ steps.get-architectures.outputs.architectures }}
architectures-list: ${{ steps.get-architectures.outputs.architectures-list }}
steps:
# - name: πŸ–₯ Get snap architectures
# id: get-architectures
# uses: snapcrafters/ci/get-architectures@main
- name: Get snap architectures
id: get-architectures
run: |
echo 'architectures-list=["amd64"]' >> $GITHUB_OUTPUT
release:
name: 🚒 Release to snapcraft.io
needs: get-architectures
runs-on: ubuntu-latest
environment: "Candidate Branch"
strategy:
fail-fast: false
matrix:
architecture: ${{ fromJSON(needs.get-architectures.outputs.architectures-list) }}
steps:
- name: Detect channel
id: get_channel
run: |
if [[ "${GITHUB_REF_NAME}" == "candidate" ]]; then
echo "channel=latest/candidate" >> $GITHUB_OUTPUT
elif [[ "${GITHUB_REF_NAME}" == "beta" ]]; then
echo "channel=latest/beta" >> $GITHUB_OUTPUT
elif [[ "${GITHUB_REF_NAME}" == "edge" ]]; then
echo "channel=latest/edge" >> $GITHUB_OUTPUT
else
echo "channel=latesst/edge/${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
fi
- name: 🚒 Release on snapcraft.io
uses: snapcrafters/ci/release-to-candidate@main
with:
channel: ${{ steps.get_channel.outputs.channel }}
architecture: ${{ matrix.architecture }}
launchpad-token: ${{ secrets.LP_BUILD_SECRET }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
store-token: ${{ secrets.SNAP_STORE_CANDIDATE }}
call-for-testing:
name: πŸ“£ Create call for testing
needs: [release, get-architectures]
environment: "Candidate Branch"
runs-on: ubuntu-latest
outputs:
issue-number: ${{ steps.issue.outputs.issue-number }}
steps:
- name: πŸ“£ Create call for testing
id: issue
uses: snapcrafters/ci/call-for-testing@main
with:
architectures: ${{ needs.get-architectures.outputs.architectures }}
github-token: ${{ secrets.GITHUB_TOKEN }}
test:
name: πŸ—’οΈ Test snap
needs: call-for-testing
runs-on: ubuntu-latest
steps:
- name: πŸ—’οΈ Run tests
uses: snapcrafters/ci/run-tests@main
with:
issue-number: ${{ needs.call-for-testing.outputs.issue-number }}
github-token: ${{ secrets.GITHUB_TOKEN }}
test-script: ./test.sh
# Commented out because this is a CLI app.
# screenshots:
# name: πŸ“Έ Gather screenshots
# needs: call-for-testing
# environment: "Candidate Branch"
# runs-on: ubuntu-latest
# steps:
# - name: πŸ“Έ Gather screenshots
# uses: snapcrafters/ci/get-screenshots@main
# with:
# issue-number: ${{ needs.call-for-testing.outputs.issue-number }}
# github-token: ${{ secrets.GITHUB_TOKEN }}
# screenshots-token: ${{ secrets.SNAPCRAFTERS_BOT_COMMIT }}