Implemented dual Terraform scenarios for both traditional hub-and-spoke and virtual wan #22
Workflow file for this run
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
--- | |
name: Release | |
on: | |
release: | |
types: [created] | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
release: | |
name: Generate Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Zip and Tar | |
run: | | |
cd templates | |
tar -cvzf ../starter_modules.tar.gz . | |
zip -r ../starter_modules.zip . | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: starter_modules | |
path: | | |
starter_modules.tar.gz | |
starter_modules.zip | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
./starter_modules.tar.gz | |
./starter_modules.zip |