Skip to content

ci: set GITHUB_ACCESS_TOKEN variable #12

ci: set GITHUB_ACCESS_TOKEN variable

ci: set GITHUB_ACCESS_TOKEN variable #12

Workflow file for this run

name: ci
on:
push:
branches:
- main
paths:
- .github/workflows/buildx.yml
- "buildx/**"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: rust
args: |
target_add wasm32-unknown-unknown
build --release --target wasm32-unknown-unknown
working-directory: buildx/plugin
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run Dagger Pipelines
run: |
fluentci run plugin/target/wasm32-unknown-unknown/release/buildx.wasm build --platform linux/amd64,linux/arm64 -t demo:latest example
deno run -A src/dagger/list_jobs.ts
dagger functions
dagger call build --src . --path example --tag demo:latest --platform linux/amd64,linux/arm64
working-directory: buildx
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish:
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.41
- name: Publish package
run: deno publish --allow-slow-types
working-directory: buildx