feat: station order reversal #4
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: Test, Build, and Release | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ["v*"] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| pre_build: | |
| permissions: | |
| actions: write | |
| contents: read | |
| name: Duplicate Actions Detection | |
| runs-on: ubuntu-latest | |
| outputs: | |
| should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
| steps: | |
| - id: skip_check | |
| uses: fkirc/skip-duplicate-actions@v5 | |
| with: | |
| cancel_others: "true" | |
| # test: | |
| # needs: [pre_build] | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - name: Checkout | |
| # uses: actions/checkout@v4 | |
| # - name: Install tools | |
| # uses: taiki-e/install-action@v2 | |
| # with: | |
| # tool: cargo-binstall,just | |
| # - name: Install more tools | |
| # run: | | |
| # cargo binstall tytanic -y | |
| # - name: Run test suite | |
| # run: just test | |
| build: | |
| needs: [pre_build] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install tools | |
| uses: taiki-e/install-action@just | |
| - name: Setup typst | |
| uses: typst-community/setup-typst@v3 | |
| - name: Build package | |
| run: | | |
| just doc | |
| just package out | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: radishom | |
| path: out/**/* | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: [build] | |
| if: success() && startsWith(github.ref, 'refs/tags/') | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| path: artifacts | |
| - name: Display structure of downloaded files | |
| run: ls -R artifacts | |
| - uses: ncipollo/release-action@v1 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| artifacts: "artifacts/*/*" | |
| allowUpdates: true | |
| omitBodyDuringUpdate: true | |
| omitDraftDuringUpdate: true | |
| omitNameDuringUpdate: true | |
| omitPrereleaseDuringUpdate: true | |
| bodyFile: CHANGELOG.md |