Browse Source

improve gh actions

pull/1618/head
Bernd Storath 9 months ago
parent
commit
05cf868f3c
  1. 6
      .github/workflows/codeql.yml
  2. 5
      .github/workflows/deploy-nightly.yml
  3. 11
      .github/workflows/deploy.yml
  4. 3
      .github/workflows/stale.yml

6
.github/workflows/codeql.yml

@ -2,9 +2,9 @@ name: "CodeQL"
on: on:
push: push:
branches: [ "master" ] branches: ["master"]
pull_request: pull_request:
branches: [ "master" ] branches: ["master"]
schedule: schedule:
- cron: "15 0 * * *" - cron: "15 0 * * *"
@ -21,7 +21,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
language: [ 'javascript-typescript' ] language: ["javascript-typescript"]
steps: steps:
- name: Checkout repository - name: Checkout repository

5
.github/workflows/deploy-nightly.yml

@ -54,4 +54,7 @@ jobs:
git config --global user.name 'Docs Deploy Bot' git config --global user.name 'Docs Deploy Bot'
git config --global user.email '[email protected]' git config --global user.email '[email protected]'
- name: Build Docs Website - name: Build Docs Website
run: mike deploy --push nightly run: |
cd docs
git fetch origin gh-pages --depth=1
mike deploy --push --update-aliases nightly

11
.github/workflows/deploy.yml

@ -3,8 +3,8 @@ name: Build & Publish Latest
on: on:
workflow_dispatch: workflow_dispatch:
push: push:
branches: tags:
- master - "v*"
jobs: jobs:
deploy: deploy:
@ -27,7 +27,7 @@ jobs:
- name: Docker meta - name: Docker meta
id: meta id: meta
uses: docker/metadata-action@v3 uses: docker/metadata-action@v5
with: with:
images: | images: |
ghcr.io/wg-easy/wg-easy ghcr.io/wg-easy/wg-easy
@ -67,4 +67,7 @@ jobs:
git config --global user.name 'Docs Deploy Bot' git config --global user.name 'Docs Deploy Bot'
git config --global user.email '[email protected]' git config --global user.email '[email protected]'
- name: Build Docs Website - name: Build Docs Website
run: mike deploy --push --update-aliases ${{ github.ref_name }} latest run: |
cd docs
git fetch origin gh-pages --depth=1
mike deploy --push --update-aliases ${{ github.ref_name }} latest

3
.github/workflows/stale.yml

@ -8,11 +8,10 @@ name: Mark stale issues and pull requests
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: '*/5 * * * *' - cron: "*/5 * * * *"
jobs: jobs:
stale: stale:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository_owner == 'wg-easy' if: github.repository_owner == 'wg-easy'
permissions: permissions:

Loading…
Cancel
Save