You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
130
-
asset_path: ./releaseAPI.zip
131
-
asset_name: releaseAPI.zip
132
-
asset_content_type: application/zip
133
-
134
-
# ------- END RELEASE PROCCESS -------- #
68
+
- uses: actions/checkout@v3
69
+
with:
70
+
fetch-depth: "0"
71
+
# Generate Tagname
72
+
- name: Generate Tagname for release
73
+
id: taggerDryRun
74
+
uses: anothrNick/github-tag-action@1.61.0
75
+
env:
76
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77
+
WITH_V: true
78
+
DRY_RUN: true
79
+
DEFAULT_BUMP: patch
80
+
RELEASE_BRANCHES: stage,main
81
+
BRANCH_HISTORY: last
82
+
# update version swagger.json
83
+
- name: Checkout code
84
+
uses: actions/checkout@v3
85
+
with:
86
+
ref: main
87
+
- name: Update version
88
+
run: |
89
+
sed -i "s/"version": ".*"/version: "${{ steps.taggerDryRun.outputs.new_tag }}"/" src/static/swagger.json
90
+
env:
91
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92
+
- name: Commit changes
93
+
uses: stefanzweifel/git-auto-commit-action@v4
94
+
with:
95
+
commit_message: "Update version to ${{ steps.taggerDryRun.outputs.new_tag }}"
96
+
# API Zip
97
+
- name: Zip artifact for deployment
98
+
run: cd ./src && zip -r ../releaseAPI.zip ./* && cd ..
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
0 commit comments