Merge pull request #3159 from tignear/test/comb-loop-analysis #1346
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: Deploy | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - 'v*.*.*' | |
| jobs: | |
| std: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| continue-on-error: true | |
| with: | |
| shared-key: "${{ runner.os }}-release" | |
| save-if: ${{ github.ref == 'refs/heads/master' }} | |
| - name: Setup veryl | |
| run: cargo build --profile release-verylup | |
| - name: Build doc | |
| run: ../../../target/release-verylup/veryl doc | |
| working-directory: crates/std/veryl | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: std | |
| path: crates/std/veryl/target/doc/ | |
| deploy: | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| needs: [std] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Download std | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: std | |
| path: public | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| cname: std.veryl-lang.org | |
| deploy-nightly: | |
| if: ${{ ! startsWith(github.ref, 'refs/tags/v') }} | |
| needs: [std] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Download std | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: std | |
| path: public | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| cname: std.veryl-lang.org | |
| destination_dir: nightly |