Skip to content

Add ctas and pipelines (#139) #103

Add ctas and pipelines (#139)

Add ctas and pipelines (#139) #103

Workflow file for this run

name: Site
on:
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Fetch Github Release Asset
uses: dsaltares/[email protected]
with:
repo: cobalt-org/cobalt.rs
file: cobalt-v0.19.2-x86_64-unknown-linux-gnu.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build site
run: |
tar xfv cobalt-*
rm -rf doc
./cobalt build
- name: Publish Cloudflare
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: website
directory: _site
gitHubToken: ${{ secrets.GITHUB_TOKEN }}