scim-docs/.forgejo/workflows/main.yaml
Hugo Renard cad5614aaa
All checks were successful
/ build (push) Successful in 22s
/ deploy (push) Successful in 3s
ci: add forgejo action
2024-09-23 17:00:50 +02:00

23 lines
708 B
YAML

on: [push]
env:
HUGO_VERSION: 0.79.0
jobs:
build:
runs-on: native
steps:
- name: Nix build
run: nix build "git+${{ env.GITHUB_SERVER_URL }}/${{ env.GITHUB_REPOSITORY }}?rev=${{ env.GITHUB_SHA }}"
- uses: actions/upload-artifact@v3
with:
name: website
path: result/
deploy:
runs-on: native
steps:
- uses: actions/download-artifact@v3
- name: Deploy
if: ${{ env.GITHUB_REF_NAME }} == master
run: mc mirror --overwrite --remove website hot/${{ env.BUCKET }}
- name: Deploy beta
if: ${{ env.GITHUB_REF_NAME }} == develop
run: mc mirror --overwrite --remove website hot/${{ env.BETA_BUCKET }}