Add workflow to build site
All checks were successful
ci / build_and_publish (push) Successful in 1m4s
All checks were successful
ci / build_and_publish (push) Successful in 1m4s
This commit is contained in:
parent
1678bc0b99
commit
90c35f1b84
1 changed files with 24 additions and 0 deletions
24
.github/workflows/ci.yaml
vendored
Normal file
24
.github/workflows/ci.yaml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
name: ci
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- kanglam-branding
|
||||
pull_request:
|
||||
branches:
|
||||
- kanglam-branding
|
||||
jobs:
|
||||
build_and_publish:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: docker.io/debian:trixie
|
||||
steps:
|
||||
- run: apt update && apt install -y tar jekyll nodejs npm ruby-dev curl
|
||||
- uses: actions/checkout@v4
|
||||
- run: bundle install
|
||||
- run: bundle exec jekyll build -d ../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 kanglam-ui.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