This commit is contained in:
parent
17ac2d427b
commit
62a6b31697
|
@ -5,12 +5,18 @@ jobs:
|
|||
container:
|
||||
image: rust:slim-bookworm
|
||||
steps:
|
||||
- run: apt-get update -y && apt-get install -y nodejs git curl
|
||||
- run: apt-get update -y && apt-get install -y git curl
|
||||
- run: |
|
||||
curl -L https://github.com/trunk-rs/trunk/releases/download/v0.19.1/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
|
||||
mv trunk /
|
||||
- run: rustup target add wasm32-unknown-unknown
|
||||
- uses: https://code.forgejo.org/actions/checkout@v3
|
||||
- run: |
|
||||
TOKEN=$(echo -n "x-access-token:${GITHUB_TOKEN}" | base64)
|
||||
mkdir -p "${GITHUB_WORKSPACE}"
|
||||
cd "${GITHUB_WORKSPACE}"
|
||||
git init
|
||||
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}"
|
||||
git -c http.extraHeader="Authorization: Basic ${TOKEN}" fetch origin "${GITHUB_SHA}"
|
||||
- run: /trunk build --release --public-url '.'
|
||||
- run: |
|
||||
cd dist
|
||||
|
|
Loading…
Reference in a new issue