Add workflow to build site
This commit is contained in:
parent
1678bc0b99
commit
0045e63694
1 changed files with 26 additions and 0 deletions
26
.github/workflows/ci.yaml
vendored
Normal file
26
.github/workflows/ci.yaml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
name: ci
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
jobs:
|
||||||
|
build_and_publish:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: ghcr.io/catthehacker/ubuntu:runner-latest
|
||||||
|
steps:
|
||||||
|
- run: sudo apt update && sudo apt install -y tar
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Build site
|
||||||
|
uses: actions/jekyll-build-pages@v4
|
||||||
|
with:
|
||||||
|
destination: "./output"
|
||||||
|
- run: tar cvfz kanglam-ui.tar.gz ./output/*
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
curl -H "Authorization: token ${{ secrets.PACKAGE_TOKEN }}" -X DELETE "https://guardianproject.dev/api/packages/butter/generic/butter-kanglam-ui/latest"
|
||||||
|
- run: |
|
||||||
|
curl -H "Authorization: token ${{ secrets.PACKAGE_TOKEN }}" -X PUT --upload-file dendrite-arm64.tar.gz https://guardianproject.dev/api/packages/butter/generic/butter-kanglam-ui/latest/kanglam-ui.tar.gz
|
||||||
Loading…
Add table
Add a link
Reference in a new issue