aboutsummaryrefslogblamecommitdiff
path: root/.github/workflows/release.yaml
blob: 07cd0d779aafe930fd1f55f0920c06c352b105d0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                     
   



                    
                                              



                                 








                                                                                                                
                                                                                                        

                                  
                                
                                        

                                                   
name: "(Release) Release dev container features (v2)"
on:
  workflow_dispatch:

jobs:
  deploy:
    if: ${{ github.ref == 'refs/heads/main' }}
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Install Oras
        run: |
          curl -LO https://github.com/oras-project/oras/releases/download/v0.13.0/oras_0.13.0_linux_amd64.tar.gz
          mkdir -p oras-install/
          tar -zxf oras_0.13.0_*.tar.gz -C oras-install/
          mv oras-install/oras /usr/local/bin/
          rm -rf oras_0.13.0_*.tar.gz oras-install/

      - name: "Publish features to OCI"
        uses: ./.github/devcontainers-action # TODO: Once 'devcontainers/action' is published, use that.
        with:
          publish-features: "true"
          publish-to-oci: "true"
          base-path-to-features: "./src"
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}