forked from microsoft/vscode-dev-containers
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (25 loc) · 1.01 KB
/
container-features.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: 'Deploy Devcontainer Features (Manually)'
on:
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: Copy scripts to src folder
id: copy_scripts
run: cp -r ./script-library/*.sh ./script-library/container-features/src
- name: Publish Dev container features
uses: microsoft/publish-dev-container-features-action@main
with:
publish-features: 'true'
path-to-features: './script-library/container-features/src'
publish-definitions: 'true'
path-to-definitions: './containers'
- 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 }}