mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
103d786ad2
* chore: stop copying / and instead only copy zitadel * Update Dockerfile * Update release.yml * enable anchors debug * fix(container): don't copy alpine content into scratch execpt pwd * chore: remove need step * merge master
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
name: Docs
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'site/**'
|
|
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
jobs:
|
|
builddocs:
|
|
name: Build Doc Frontend
|
|
runs-on: ubuntu-18.04
|
|
defaults:
|
|
run:
|
|
working-directory: ./site
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v2
|
|
- name: Install and Build
|
|
run: |
|
|
npm install
|
|
npx sapper export --legacy
|
|
- name: Archive Production Artifact
|
|
uses: actions/upload-artifact@master
|
|
with:
|
|
name: export
|
|
path: site/__sapper__/export
|
|
deploydocs:
|
|
name: Deploy
|
|
needs: builddocs
|
|
runs-on: ubuntu-latest
|
|
if: github.ref == 'refs/heads/master'
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@master
|
|
- name: Download Artifact
|
|
uses: actions/download-artifact@master
|
|
with:
|
|
name: export
|
|
path: site/__sapper__/export
|
|
- name: Add CNAME file
|
|
run: echo "docs.zitadel.ch" > site/__sapper__/export/CNAME
|
|
- name: Deploy
|
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
|
with:
|
|
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
BRANCH: gh-pages
|
|
FOLDER: site/__sapper__/export
|
|
CLEAN: true |