circuiteria:0.2.1 (#5211) #4251
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: [main] | |
| # Don't deploy two commits in parallel | |
| concurrency: | |
| group: deploy | |
| jobs: | |
| deploy: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository == 'typst/packages' }} # don't run in forked repos | |
| environment: Deploy | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #v6.0.1 | |
| with: | |
| # Download the whole history for the package timestamps | |
| fetch-depth: 0 | |
| - uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable channel | |
| - uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v.2.8.2 | |
| with: | |
| workspaces: bundler | |
| - name: Build bundler | |
| run: cargo build --release --manifest-path bundler/Cargo.toml | |
| - name: Package | |
| run: bundler/target/release/bundler | |
| - uses: kheiakiyama/install-azcopy-action@13e9f2135934ba6d9dcec703be926f2b2e616471 # v1.0.8 | |
| with: | |
| version: "v10" | |
| creds: ${{ secrets.AZURE_PACKAGE_CREDENTIALS }} | |
| - name: Sync files | |
| env: | |
| ACCOUNT_NAME: typstpackages | |
| run: | | |
| azcopy_v10 cp --recursive ./dist/* "https://$ACCOUNT_NAME.blob.core.windows.net/\$web" \ | |
| --overwrite true --exclude-pattern '*.json' \ | |
| --cache-control 'public, max-age=7776000' --put-md5 | |
| azcopy_v10 cp --recursive ./dist/* "https://$ACCOUNT_NAME.blob.core.windows.net/\$web" \ | |
| --overwrite true --include-pattern '*.json' --exclude-pattern '*index.full.json' \ | |
| --cache-control 'must-revalidate, max-age=600' --put-md5 |