aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release.yaml
blob: c271e03004f608e95258acda2eeca871e745a7fd (plain) (blame)
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
name: "(Release) Release dev container features (v2)"
on:
  push:
    tags:
      - "v0.0.2" # Temporary
  workflow_dispatch:

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Generate tgz
        uses: ./.github/devcontainers-action # devcontainers/ci
        with:
          publish-features: "true"
          base-path-to-features: "./src"
      
      - name: Remove temporary devcontainer-cli # TODO: Temporary
        run: rm -rf ./devcontainer-cli-0*

      - 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: "./*.tgz,devcontainer-collection.json"
          token: ${{ secrets.GITHUB_TOKEN }}