Skip to content

Don't use fully-qualified paths for wasmtime_environ::error::* (#12… #4139

Don't use fully-qualified paths for wasmtime_environ::error::* (#12…

Don't use fully-qualified paths for wasmtime_environ::error::* (#12… #4139

name: Publish Artifacts
on:
push:
branches: [main]
tags-ignore: [dev]
permissions:
contents: write
id-token: write
attestations: write
jobs:
publish:
name: Publish artifacts of build
runs-on: ubuntu-latest
if: github.repository == 'bytecodealliance/wasmtime'
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/fetch-run-id
- run: |
gh run download ${COMMIT_RUN_ID}
ls
find bins-*
env:
GH_TOKEN: ${{ github.token }}
- run: ./ci/merge-artifacts.sh
# Deploy the `gh-pages.tar.gz` artifact to the `gh-pages` branch.
- run: tar xf gh-pages.tar.gz
working-directory: gh-pages
- if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v5
- if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: "./gh-pages/gh-pages"
- uses: actions/attest-build-provenance@v1
with:
subject-path: 'dist/*'
- if: github.ref_name == 'main'
run: |
git tag -f dev
git push origin dev:dev -f
gh release create dev --prerelease dist/* ||
gh release upload dev --clobber dist/*
env:
GH_TOKEN: ${{ github.token }}
- if: github.ref_name != 'main'
run: |
sed '/---------------/Q' RELEASES.md > relnotes.md
gh release create ${{ github.ref_name }} --notes-file relnotes.md dist/*
env:
GH_TOKEN: ${{ github.token }}
continue-on-error: true
# See https://github.com/actions/deploy-pages
deploy:
name: Deploy gh-pages artifact
if: github.ref == 'refs/heads/main'
needs: publish
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4