Skip to content

Commit 9b04495

Browse files
committed
git actions workflow
1 parent 7222d8e commit 9b04495

File tree

1 file changed

+29
-28
lines changed

1 file changed

+29
-28
lines changed

.github/workflows/deploy.yml

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -412,33 +412,34 @@ jobs:
412412
-p ${namespace} \
413413
-a ${account_id}
414414
415-
# Release:
416-
# needs: Cleanup
417-
# runs-on: ubuntu-latest
418-
# environment: "nonprod"
419-
- name: Download bin artifact
420-
uses: actions/download-artifact@v4
421-
with:
422-
name: bin
423-
path: ${{ github.workspace }}/bin
415+
Release:
416+
needs: Deploy
417+
runs-on: ubuntu-latest
418+
environment: "nonprod"
419+
steps:
420+
- name: Download bin artifact
421+
uses: actions/download-artifact@v4
422+
with:
423+
name: bin
424+
path: ${{ github.workspace }}/bin
424425

425-
- name: Download deploy_scripts artifact
426-
uses: actions/download-artifact@v4
427-
with:
428-
name: deploy_scripts
429-
path: ${{ github.workspace }}/deploy_scripts
426+
- name: Download deploy_scripts artifact
427+
uses: actions/download-artifact@v4
428+
with:
429+
name: deploy_scripts
430+
path: ${{ github.workspace }}/deploy_scripts
430431

431-
- name: Create GitHub Release
432-
uses: actions/create-release@v1
433-
env:
434-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
435-
with:
436-
tag_name: ${{ github.ref_name }}
437-
release_name: Release ${{ github.ref_name }}
438-
draft: false
439-
prerelease: false
440-
files: |
441-
${{ github.workspace }}/bin/build_artifacts.zip
442-
${{ github.workspace }}/bin/terraform_artifacts.zip
443-
${{ github.workspace }}/deploy_scripts/deploy.sh
444-
${{ github.workspace }}/deploy_scripts/restore_db.sh
432+
- name: Create GitHub Release
433+
uses: actions/create-release@v1
434+
env:
435+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
436+
with:
437+
tag_name: ${{ github.ref_name }}
438+
release_name: Release ${{ github.ref_name }}
439+
draft: false
440+
prerelease: false
441+
files: |
442+
${{ github.workspace }}/bin/build_artifacts.zip
443+
${{ github.workspace }}/bin/terraform_artifacts.zip
444+
${{ github.workspace }}/deploy_scripts/deploy.sh
445+
${{ github.workspace }}/deploy_scripts/restore_db.sh

0 commit comments

Comments
 (0)