matrix-art.meta

Issues/PRs archive for MTRNord/matrix-art
git clone git://archive.git.mtrnord.blog/MTRNord/matrix-art.meta.git
Log | Files | Refs

9.diff (871B)


      1 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
      2 new file mode 100644
      3 index 0000000..e160ba4
      4 --- /dev/null
      5 +++ b/.github/workflows/deploy.yml
      6 @@ -0,0 +1,20 @@
      7 +name: Deploy to server
      8 +on:
      9 +  push:
     10 +    branches: [main]
     11 +permissions: read-all
     12 +
     13 +jobs:
     14 +  deploy:
     15 +    runs-on: ubuntu-latest
     16 +    steps:
     17 +      - name: Harden Runner
     18 +        uses: step-security/harden-runner@14dc64f30986eaa2ad2dddcec073f5aab18e5a24 # v1
     19 +        with:
     20 +          allowed-endpoints: "gitlab.nordgedanken.dev:443"
     21 +      - name: curl
     22 +        uses: wei/curl@012398a392d02480afa2720780031f8621d5f94c # master
     23 +        with:
     24 +          args: -X POST -F "token=$GITLAB_TOKEN" -F "ref=main" -F "variables[GITHUB_COMMIT_ID]=$GITHUB_SHA" https://gitlab.nordgedanken.dev/api/v4/projects/2/trigger/pipeline
     25 +        env:
     26 +          GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}