2022-06-03 17:54:31 +03:00
|
|
|
name: "(Release-v1) Package dev container features (v1)"
|
2022-05-10 02:10:29 +03:00
|
|
|
on:
|
2022-05-10 02:28:03 +03:00
|
|
|
push:
|
|
|
|
tags:
|
2022-06-03 17:49:26 +03:00
|
|
|
- "v0.0.1"
|
2022-05-10 02:10:29 +03:00
|
|
|
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
|
2022-05-10 02:12:01 +03:00
|
|
|
run: ./v1/combine-feature-fragments.py > ./devcontainer-features.json
|
2022-05-10 02:10:29 +03:00
|
|
|
|
|
|
|
- name: Copy scripts to src folder
|
|
|
|
id: copy_scripts
|
2022-05-16 21:34:56 +03:00
|
|
|
run: cp -r ./v1/install.sh ./v1/feature-scripts.env ./devcontainer-features.json ./src
|
2022-05-10 02:10:29 +03:00
|
|
|
|
|
|
|
- name: Debug Output
|
|
|
|
run: sudo apt install tree -y && tree
|
|
|
|
|
|
|
|
- name: Generate tgz
|
2022-06-14 03:01:19 +03:00
|
|
|
uses: microsoft/publish-dev-container-features-action@main
|
2022-05-10 02:10:29 +03:00
|
|
|
with:
|
|
|
|
publish-features: "true"
|
2022-05-16 21:34:56 +03:00
|
|
|
path-to-features: "./src"
|
2022-05-10 02:10:29 +03:00
|
|
|
publish-definitions: "false"
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: devcontainer-features.tgz
|
|
|
|
path: devcontainer-features.tgz
|
|
|
|
|
2022-05-10 02:26:46 +03:00
|
|
|
- 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 }}
|