feat: add submodule support #254
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: [published] | |
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: | | |
mkdir bootstrap | |
cp -r .config bootstrap | |
cp -r alz bootstrap | |
cp -r modules bootstrap | |
cd bootstrap | |
tar -cvzf ../bootstrap_modules.tar.gz . | |
zip -r ../bootstrap_modules.zip . | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: bootstrap_modules | |
path: | | |
bootstrap_modules.tar.gz | |
bootstrap_modules.zip | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
./bootstrap_modules.tar.gz | |
./bootstrap_modules.zip |