roib20 84919b65d6
Add multi-arch container image builds (#132)
* Update versions for GH Actions

* Add build arg for Dockerfile

* Add automated tags for container image

* Add multi-arch image builds using QEMU and Buildx

* Add checks to ensure PRs don't publish images

* Auto-indent YAML

* Change web interface version name

* Revert back to `10.8.0` version name
2023-02-07 02:34:43 -06:00

42 lines
955 B
YAML

name: 'Package plugin'
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
# set fetch-depth to 0 in order to clone all tags instead of just the current commit
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Checkout latest tag
id: tag
run: |
tag="$(git tag --sort=committerdate | tail -n 1)"
git checkout "$tag"
echo "tag=$tag" >> $GITHUB_OUTPUT
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Package
run: .github/workflows/package.sh ${{ steps.tag.outputs.tag }}
- name: Upload plugin archive
uses: actions/upload-artifact@v3.1.2
with:
name: intro-skipper-bundle-${{ steps.tag.outputs.tag }}.zip
path: |
package/*.zip
package/*.json
if-no-files-found: error