release #88
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: "release" | |
on: | |
push: | |
branches: [main] | |
paths: | |
- _src_/*/**.svg # dont match toplevel _src_ items, eg template.svg | |
- ./.github/workflows/release.yml | |
- ./.github/actions/get-deps/action.yml | |
- ./export.sh | |
- ./outline.py | |
- ./prepare-artifact.sh | |
- ./mod.json | |
- ./manual_outline | |
- ./requirements.txt | |
- ./trim.py | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
changelog: | |
outputs: | |
version: ${{ steps.changelog.outputs.version }} | |
body: ${{ steps.changelog.outputs.clean_changelog }} | |
tag: ${{ steps.changelog.outputs.tag }} | |
skipped: ${{ steps.changelog.outputs.skipped }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
# with: | |
# lfs: true | |
- name: create changelog | |
id: changelog | |
uses: TriPSs/conventional-changelog-action@v3 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
skip-version-file: "true" | |
skip-on-empty: "true" | |
output-file: "false" | |
skip-commit: "true" | |
release: | |
needs: changelog | |
runs-on: ubuntu-latest | |
if: ${{ needs.changelog.outputs.skipped == 'false' }} | |
steps: | |
- name: get deps | |
uses: hortiSquash/hortiDefinition/.github/actions/get-deps@main | |
- name: set mod version | |
run: jq '.version = "${{ needs.changelog.outputs.tag }}"' mod.json | sponge mod.json | |
- name: make artifacts | |
run: | | |
./prepare-artifact.sh 0.25 | |
./prepare-artifact.sh 0.5 | |
./prepare-artifact.sh 1 | |
./prepare-artifact.sh 2 | |
./prepare-artifact.sh 4 | |
./prepare-artifact.sh 8 | |
- name: upload artifacts | |
uses: actions/[email protected] | |
with: | |
path: "**.zip" | |
- name: release artifacts | |
uses: ncipollo/[email protected] | |
with: | |
artifacts: "**.zip" | |
body: ${{ needs.changelog.outputs.body }} | |
tag: ${{ needs.changelog.outputs.tag }} |