Deploy Extension #29
Workflow file for this run
This file contains 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 Extension | |
on: | |
release: | |
types: [created] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
uses: ./.github/workflows/build.yml | |
deploy: | |
permissions: write-all | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 # Required for release upload | |
- name: Create release folder | |
run: mkdir -p ./bin/ | |
- name: Download desktop binary | |
uses: actions/download-artifact@v4 | |
with: | |
name: desktop | |
path: ./bin | |
- name: Download wasi binary | |
uses: actions/download-artifact@v4 | |
with: | |
name: wasi | |
path: ./bin | |
- name: Zip binary | |
run: zip -v -r -j shader_language_server.zip ./bin | |
- name: Create release | |
run: gh release upload ${{ github.ref_name }} shader_language_server.zip | |
env: | |
GH_TOKEN: ${{ github.token }} | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 # Required for release upload | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- uses: katyo/publish-crates@v2 | |
with: | |
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} |