feat: packaging for jammy (#10) #17
Workflow file for this run
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: Upload linz-coordsys to packagecloud.io when commit is tagged with version | |
# | |
# Use linz-software-repository to push to packagecloud. | |
# Push based on tags. | |
# tag #.#.#-#-test goes to dev repository | |
# tag #.#.#-# goes to test repository. Manual promotion from there to prod repository. | |
# | |
on: | |
push: | |
tags: | |
- "[0-9]+.[0-9]+.[0-9]+-[0-9]+*" | |
jobs: | |
package: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
distro: [focal, jammy] | |
env: | |
PACKAGECLOUD_REPOSITORY: test | |
steps: | |
- name: Configure target repository | |
# If the ref name includes -test then go to the dev repo, else to test. | |
run: | | |
if [[ "$GITHUB_REF_NAME" =~ "-test" ]]; then | |
echo "PACKAGECLOUD_REPOSITORY=dev" >> $GITHUB_ENV; | |
fi | |
- uses: actions/checkout@v2.4.0 | |
- name: Document target repository | |
run: | | |
echo "Cloud repo: $PACKAGECLOUD_REPOSITORY" | |
- uses: linz/linz-software-repository@v14 | |
with: | |
release: ${{ matrix.distro }} | |
packagecloud_repository: ${{ env.PACKAGECLOUD_REPOSITORY }} | |
packagecloud_token: ${{ secrets.LINZCI_PACKAGECLOUD_TOKEN }} |