From 772c600775ebd86a9fc8fc958b79a3e483ffc4f4 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 8 Jan 2024 17:48:04 +0200 Subject: [.github/main-branch] Added a github release step --- .github/workflows/main-branch.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to '.github/workflows/main-branch.yml') diff --git a/.github/workflows/main-branch.yml b/.github/workflows/main-branch.yml index d8584cb..dcd4c60 100644 --- a/.github/workflows/main-branch.yml +++ b/.github/workflows/main-branch.yml @@ -1,10 +1,10 @@ -name: Push image to dockerhub +name: Create release and push production server image to dockerhub on: push: branches: - main jobs: - build-and-push: + Build-docker-and-push: name: Build the docker container image and push it to dockerhub runs-on: ubuntu-latest steps: @@ -18,3 +18,14 @@ jobs: push: true tags: ${{ secrets.DOCKERHUB_USERNAME }}/pico-web-server:latest + Release: + name: Make github release + runs-on: ubuntu-latest + needs: Build-docker-and-push + steps: + - uses: actions/checkout@v4 + - uses: rymndhng/release-on-push-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + bump_version_scheme: minor -- cgit v1.2.3 From fe29a3630d48d3e1d44287ea41682621d3a3dab0 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 8 Jan 2024 17:59:38 +0200 Subject: [.github] Recursive submodule checkout --- .github/workflows/dev-branch.yml | 2 ++ .github/workflows/feature-branch.yml | 2 ++ .github/workflows/main-branch.yml | 2 ++ 3 files changed, 6 insertions(+) (limited to '.github/workflows/main-branch.yml') diff --git a/.github/workflows/dev-branch.yml b/.github/workflows/dev-branch.yml index a7e81f6..6d66da2 100644 --- a/.github/workflows/dev-branch.yml +++ b/.github/workflows/dev-branch.yml @@ -12,6 +12,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + submodules: recursive - uses: actions/upload-artifact@v3 with: name: source-code diff --git a/.github/workflows/feature-branch.yml b/.github/workflows/feature-branch.yml index 88bee04..3ff1833 100644 --- a/.github/workflows/feature-branch.yml +++ b/.github/workflows/feature-branch.yml @@ -13,6 +13,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + submodules: recursive - uses: actions/upload-artifact@v3 with: name: source-code diff --git a/.github/workflows/main-branch.yml b/.github/workflows/main-branch.yml index dcd4c60..8534344 100644 --- a/.github/workflows/main-branch.yml +++ b/.github/workflows/main-branch.yml @@ -9,6 +9,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + submodules: recursive - uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} -- cgit v1.2.3 From 9205cd150c7abeb0f73d54923848d08e940d9f23 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 8 Jan 2024 19:19:26 +0200 Subject: [.github/main-branch] Updated github token name --- .github/workflows/main-branch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/main-branch.yml') diff --git a/.github/workflows/main-branch.yml b/.github/workflows/main-branch.yml index 8534344..f19976d 100644 --- a/.github/workflows/main-branch.yml +++ b/.github/workflows/main-branch.yml @@ -28,6 +28,6 @@ jobs: - uses: actions/checkout@v4 - uses: rymndhng/release-on-push-action@master env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} with: bump_version_scheme: minor -- cgit v1.2.3