Skip to content

Commit

Permalink
Merge pull request #2 from aws-greengrass/feature
Browse files Browse the repository at this point in the history
feat: Adding git workflow to archive and upload the templates as part of release
  • Loading branch information
pallavi03 authored Nov 2, 2021
2 parents 871069a + 0fe0f0e commit 3f34a43
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ A clear and concise description of what you expected to happen.
Tell us what actually happened.

**Environment**
- OS: [e.g. Ubuntu 20.04]
- OS: [e.g. Ubuntu 20.04] (If possible, provide output of `uname -a`)
- JDK version:
- Nucleus version:

Expand Down
41 changes: 41 additions & 0 deletions .github/workflow/archive_template.yml
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

0 comments on commit 3f34a43

Please sign in to comment.