aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJosh Spicer <josh@joshspicer.com>2022-05-10 02:10:29 +0300
committerGitHub <noreply@github.com>2022-05-10 02:10:29 +0300
commit11222df509fc7a0f44e794eae78925c4fe9dcb00 (patch)
tree52e7b9e387fb32c281a028613fe1eebcd3372cfc /.github/workflows
parent9efe4b3c4a5f07c45cf6ed69900006eed0e844b9 (diff)
add release action (#2)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/release-v1.yaml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/release-v1.yaml b/.github/workflows/release-v1.yaml
new file mode 100644
index 0000000..fbae8cc
--- /dev/null
+++ b/.github/workflows/release-v1.yaml
@@ -0,0 +1,40 @@
+name: "Package dev container features (v1)"
+on:
+ # Will create a release ON THE CURRENT TAG
+ workflow_dispatch:
+
+jobs:
+ deploy: # make sure the action works on a clean machine without building
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Combine Feature Fragments
+ run: ./v1/combine-feature-fragments.py > ./collection/devcontainer-features.json
+
+ - name: Copy scripts to src folder
+ id: copy_scripts
+ run: cp -r ./v1/install.sh ./v1/feature-scripts.env ./collection
+
+ - name: Debug Output
+ run: sudo apt install tree -y && tree
+
+ - name: Generate tgz
+ uses: microsoft/publish-dev-container-features-action@main # devcontainers/action
+ with:
+ publish-features: "true"
+ path-to-features: "./collection"
+ publish-definitions: "false"
+
+ - uses: actions/upload-artifact@v3
+ with:
+ name: devcontainer-features.tgz
+ path: devcontainer-features.tgz
+
+ # - name: Get or Create Release at current tag
+ # uses: ncipollo/release-action@v1
+ # with:
+ # allowUpdates: true # Lets us upload our own artifact from previous step
+ # artifactErrorsFailBuild: true
+ # artifacts: "./devcontainer-*"
+ # token: ${{ secrets.GITHUB_TOKEN }}