Skip to content
This repository was archived by the owner on Jul 12, 2025. It is now read-only.

Commit 46d08b1

Browse files
committed
Add workflow that deploy features
1 parent a61714c commit 46d08b1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: 'Deploy Features'
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
7+
jobs:
8+
deploy: # make sure the action works on a clean machine without building
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Get tag name
14+
id: get_tag_name
15+
run: echo "::set-output name=tag::$(echo "${{ github.ref }}" | grep -oP 'refs/tags/\K(.+)')"
16+
17+
- name: Publish dev container features
18+
uses: microsoft/publish-dev-container-features-action@main
19+
with:
20+
path-to-features: '.'
21+
22+
- name: Get or Create Release at current tag
23+
uses: ncipollo/release-action@v1
24+
with:
25+
allowUpdates: true # Lets us upload our own artifact from previous step
26+
artifactErrorsFailBuild: true
27+
artifacts: './devcontainer-features.tgz'
28+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)