diff options
author | techknowlogick <techknowlogick@gitea.io> | 2023-04-30 18:23:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-30 18:23:26 +0200 |
commit | a4c13af578105ffbce78645ec0c824e0f9525e12 (patch) | |
tree | 69795e8743c65fad1011fe066bf3ba21433b639e /.github | |
parent | Improve issue list filter (#24425) (diff) | |
download | forgejo-a4c13af578105ffbce78645ec0c824e0f9525e12.tar.xz forgejo-a4c13af578105ffbce78645ec0c824e0f9525e12.zip |
Move docs pipelines to use Actions (#24434)
similar to #24314, this moves drone cron pipelines to (GitHub) Actions.
As these are mostly compatible with Gitea Actions, when we start to
dogfood, these will already be migrated.
I also removed the discord notify pipeline, as it hasn't been working
for several months.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/pull-compliance_docs.yml | 22 | ||||
-rw-r--r-- | .github/workflows/push-publish_docs.yml | 31 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.github/workflows/pull-compliance_docs.yml b/.github/workflows/pull-compliance_docs.yml new file mode 100644 index 0000000000..e3c3a42541 --- /dev/null +++ b/.github/workflows/pull-compliance_docs.yml @@ -0,0 +1,22 @@ +name: Compliance testing for documentation + +on: + pull_request: + paths: + - "docs/**" + - "*.md" + +jobs: + compliance-docs: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v3 + - name: setup node + uses: actions/setup-node@v2 + with: + node-version: 18 + - name: install dependencies + run: make deps-frontend + - name: lint markdown + run: make lint-md diff --git a/.github/workflows/push-publish_docs.yml b/.github/workflows/push-publish_docs.yml new file mode 100644 index 0000000000..6658830db0 --- /dev/null +++ b/.github/workflows/push-publish_docs.yml @@ -0,0 +1,31 @@ +name: Publish documentation + +on: + push: + paths: + - "docs/**" + branch: + - main + +jobs: + compliance-docs: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v3 + - name: setup go + uses: actions/setup-go@v4 + with: + go-version: '>=1.20.1' + - name: build docs + run: | + cd docs + make trans-copy clean build + - name: publish to netlify + uses: nwtgck/actions-netlify@v2.0 + with: + production-branch: main + publish-dir: docs/public/ + site-id: d2260bae-7861-4c02-8646-8f6440b12672 + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} |