2022-07-27 21:30:57 -05:00
|
|
|
name: 'Package plugin'
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-11-23 00:24:52 -06:00
|
|
|
runs-on: ubuntu-22.04
|
2022-07-27 21:30:57 -05:00
|
|
|
|
|
|
|
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"
|
2022-10-19 01:37:20 -05:00
|
|
|
echo "tag=$tag" >> $GITHUB_OUTPUT
|
2022-07-27 21:30:57 -05:00
|
|
|
|
|
|
|
- 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
|
2023-02-07 10:34:43 +02:00
|
|
|
uses: actions/upload-artifact@v3.1.2
|
2022-07-27 21:30:57 -05:00
|
|
|
with:
|
|
|
|
name: intro-skipper-bundle-${{ steps.tag.outputs.tag }}.zip
|
|
|
|
path: |
|
|
|
|
package/*.zip
|
|
|
|
package/*.json
|
|
|
|
if-no-files-found: error
|