From de4c5d7020f446026ca0ae463335368c0b84ea1f Mon Sep 17 00:00:00 2001 From: Luis Hankel Date: Wed, 15 Apr 2026 17:59:27 +0200 Subject: [PATCH 1/2] Add workflow for deployment to production --- .github/workflows/production.yml | 39 ++++++++++++++++++++++++++++++++ .github/workflows/staging.yml | 6 ++--- 2 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/production.yml diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml new file mode 100644 index 0000000..9a14dc5 --- /dev/null +++ b/.github/workflows/production.yml @@ -0,0 +1,39 @@ +name: Deploy Astro site to Production + +on: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +concurrency: + group: 'pages' + cancel-in-progress: true + +jobs: + build: + uses: ./.github/workflows/build.yml + with: + stage: production + + deploy: + environment: + name: production + url: https://coderdojo-schoeneweide.de/ + needs: build + runs-on: ubuntu-latest + name: Deploy + steps: + - name: Download artifact + uses: actions/download-artifact@v8 + with: + name: github-pages + + - run: ls -la + + # - name: Push to coderdojo-schoeneweide.github.io repository + # uses: peaceiris/actions-gh-pages@v4 + # with: + # deploy_key: ${{ secrets.DEPLOY_KEY }} + # external_repository: Coderdojo-Schoeneweide/coderdojo-schoeneweide.github.io + # publish_branch: master + # publish_dir: ./ diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index ffb4daf..3b37ae6 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -1,9 +1,9 @@ -name: Deploy Astro site to Pages +name: Deploy Astro site to Staging on: # Runs on pushes targeting the default branch push: - branches: [ "master" ] + branches: ['master'] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -16,7 +16,7 @@ permissions: # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. concurrency: - group: "pages" + group: 'pages' cancel-in-progress: true jobs: From 180d25ae15734424f6ede420667ff59c97d800fb Mon Sep 17 00:00:00 2001 From: majd Date: Wed, 15 Apr 2026 18:23:31 +0200 Subject: [PATCH 2/2] fix: update concurrency group name for production deployment --- .github/workflows/production.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 9a14dc5..b3ea60c 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -6,7 +6,7 @@ on: # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. concurrency: - group: 'pages' + group: 'pages-production' cancel-in-progress: true jobs: