2fa3232485
* docs * automatically generate documentation from features.json * trigger doc gen * 1 * no-ci * no-ci * no-ci * no-ci * comment out pull * Automated documentation update * no-ci markdown table * Automated documentation update * no-ci * Automated documentation update * branch to main Co-authored-by: Devcontainers CI <vscr-feedback@microsoft.com>
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
name: "(Release-v1) Package dev container features (v1)"
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v0.0.1"
|
|
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 > ./devcontainer-features.json
|
|
|
|
- name: Copy scripts to src folder
|
|
id: copy_scripts
|
|
run: cp -r ./v1/install.sh ./v1/feature-scripts.env ./devcontainer-features.json ./src
|
|
|
|
- name: Debug Output
|
|
run: sudo apt install tree -y && tree
|
|
|
|
- name: Generate tgz
|
|
uses: microsoft/publish-dev-container-features-action@main
|
|
with:
|
|
publish-features: "true"
|
|
path-to-features: "./src"
|
|
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 }}
|