From 9093e57ad927d51233efc869c39319c42b68525a Mon Sep 17 00:00:00 2001 From: sangwon Date: Mon, 8 Jan 2024 11:11:35 +0900 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5bec707..ca46156 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,10 @@ name: Release Tag + on: push: branches: - main + jobs: update_release_draft: runs-on: ubuntu-latest @@ -12,7 +14,8 @@ jobs: config-name: release.yml env: GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }} - setup-build-deploy: + + deployment: name: Setup, Build, and Deploy runs-on: ubuntu-latest permissions: @@ -26,25 +29,29 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} + # Set the new tag as a variable + - name: Set New Tag Variable + id: set_new_tag + run: echo "NEW_TAG=${{ steps.tag_version.outputs.new_tag }}" >> $GITHUB_ENV + - name: Create a GitHub release uses: ncipollo/release-action@v1 with: tag: ${{ steps.tag_version.outputs.new_tag }} name: Release ${{ steps.tag_version.outputs.new_tag }} body: ${{ steps.tag_version.outputs.changelog }} - deployment: - environment: develop - runs-on: ubuntu-latest - steps: - name: Checkout uses: actions/checkout@v2 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub uses: docker/login-action@v1 with: username: ${{ secrets.DEV_DOCKER_ID }} password: ${{ secrets.DEV_DOCKER_PW }} + - name: deploy id: docker_build uses: docker/build-push-action@v2