aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorGravatar shtlrs <[email protected]>2023-03-06 13:00:30 +0100
committerGravatar shtlrs <[email protected]>2023-03-06 13:00:30 +0100
commit38c979aec2ca2364185266c36e807f6ecdd34788 (patch)
treec9fc9e0314fa83b69e12bd2078b389f3abd10ddd /.github
parentcall status_embed from main CI (diff)
add the main.yaml CI workflow
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yaml54
1 files changed, 54 insertions, 0 deletions
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
new file mode 100644
index 00000000..03b0e9b4
--- /dev/null
+++ b/.github/workflows/main.yaml
@@ -0,0 +1,54 @@
+name: CI
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
+
+jobs:
+ lint-test:
+ uses: ./.github/workflows/lint-test.yaml
+
+
+ generate-sha-tag:
+ if: github.ref == 'refs/heads/main'
+ runs-on: ubuntu-latest
+ outputs:
+ sha-tag: ${{ steps.sha-tag.outputs.sha-tag }}
+ steps:
+ - name: Create SHA Container tag
+ id: sha-tag
+ run: |
+ tag=$(cut -c 1-7 <<< $GITHUB_SHA)
+ echo "sha-tag=$tag" >> $GITHUB_OUTPUT
+
+ publish-static-preview:
+ uses: ./.github/workflows/static-preview.yaml
+ with:
+ sha-tag: ${{ needs.generate-sha-tag.outputs.sha-tag }}
+
+
+ build-deploy:
+ if: github.ref == 'refs/heads/main'
+ uses: ./.github/worfklows/build-deploy.yaml
+ needs:
+ - lint-test
+ - generate-sha-tag
+ with:
+ sha-tag: ${{ needs.generate-sha-tag.outputs.sha-tag }}
+ secrets: inherit
+
+
+ sentry-release:
+ if: github.ref == 'refs/heads/main'
+ uses: ./.github/workflows/sentry_release.yml
+ needs:
+ - build-deploy
+ secrets: inherit