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

24 lines
841 B
YAML

on: [push]
env:
BUCKET: libre-sh-scim-doc
BETA_BUCKET: libre-sh-scim-doc-beta
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_HOST_hot=${{ secrets.MC_HOST_HOT }} mc mirror --dry-run --overwrite --remove website hot/${{ env.BUCKET }}
- name: Deploy beta
if: env.GITHUB_REF_NAME == 'develop'
run: MC_HOST_hot=${{ secrets.MC_HOST_HOT }} mc mirror --dry-run --overwrite --remove website hot/${{ env.BETA_BUCKET }}