Don't set APP_CACHE_DIR if --no-cache is passed with apps dev build (… #354
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: snapcraft-candidate | |
# Builds and publishes the package to the candidate channel on merge to main. | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build-and-publish: | |
name: 'Snapcraft: Candidate Release' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
# fetch-depth: 0 fetches all history for all branches and tags | |
fetch-depth: 0 | |
- name: Build snap | |
uses: snapcore/action-build@v1 | |
id: build | |
- uses: snapcore/action-publish@master | |
env: | |
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_TOKEN }} | |
with: | |
snap: ${{ steps.build.outputs.snap }} | |
release: candidate |