Build and Release #1
This file contains hidden or 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: Build and Release | |
| on: | |
| push: | |
| tags: | |
| # Bare semver only. HoloUI's BuilderServer parses the tag with a strict | |
| # semver library — a leading "v" makes the plugin reject the release. | |
| - "[0-9]+.[0-9]+.[0-9]+" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: ArcaneArts/arcane_jaspr | |
| ref: b896cdc28008ef56439f10670a177943c7aba69e | |
| path: .deps/arcane_jaspr | |
| - uses: dart-lang/setup-dart@v1 | |
| with: | |
| sdk: stable | |
| - name: Build | |
| run: | | |
| dart pub get | |
| dart run jaspr_cli:jaspr build | |
| - name: Package builder_static.zip | |
| run: | | |
| cd build/jaspr | |
| rm -rf .dart_tool .DS_Store | |
| zip -qr ../../builder_static.zip . -x ".*" | |
| [ -f .nojekyll ] && zip -q ../../builder_static.zip .nojekyll | |
| cd ../.. | |
| unzip -l builder_static.zip | head -8 | |
| - name: Attach release asset | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: builder_static.zip |