Skip to content

feat(subcomponents): Add subcomponents for install #50

feat(subcomponents): Add subcomponents for install

feat(subcomponents): Add subcomponents for install #50

Workflow file for this run

name: main
on:
push:
branches:
- main
tags:
- "*"
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: zip
run: |
zip -9 -r ensrick_companions.zip ensrick_portraits/companions
zip -9 -r ensrick_protagonist.zip ensrick_portraits/protagonist
- name: Archive release artifacts
uses: actions/upload-artifact@v3
with:
name: ensrick_portraits
path: ./*zip
release:
needs: [build]
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
tag_name: ${{ steps.get_tag.outputs.git_tag }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate a changelog
uses: orhun/[email protected]
id: git-cliff
with:
config: cliff.toml
args: --verbose
env:
OUTPUT: CHANGELOG.md
- name: Print the changelog
run: cat "${{ steps.git-cliff.outputs.changelog }}"
- name: Get the tag
id: get_tag
run: echo ::set-output name=git_tag::${GITHUB_REF/refs\/tags\//}
- name: Create Release
id: create_release
uses: ncipollo/[email protected]
with:
bodyFile: ./CHANGELOG.md
prerelease: ${{ startsWith(steps.get_tag.outputs.git_tag, 'nightly') }}
upload:
needs: [release]
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v3
with:
name: ensrick_portraits
- name: Upload Release Assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./ensrick_companions.zip
asset_name: ensrick_companions.zip
asset_content_type: application/octet-stream
- name: Upload Release Assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./ensrick_protagonist.zip
asset_name: ensrick_protagonist.zip
asset_content_type: application/octet-stream