-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from aws-greengrass/feature
feat: Adding git workflow to archive and upload the templates as part of release
- Loading branch information
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# This workflow archives the templates from the git hub repository | ||
|
||
name: Archive | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the main branch | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
archive: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Zip the templates | ||
run: | | ||
mkdir zip | ||
# TODO: Add commands to zip the templates | ||
- name: Upload zipped artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: templates | ||
path: templates/*.zip | ||
|
||
- name: Download uploaded artifacts | ||
id: download | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/download/ | ||
|
||
- name: Release | ||
id: upload-release-asset | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: ${{steps.download.outputs.download-path}}/templates/*.zip | ||
tag_name: v1.0 |