Skip to content

feat: add GitHub Container Registry login step to release workflow an… #3

feat: add GitHub Container Registry login step to release workflow an…

feat: add GitHub Container Registry login step to release workflow an… #3

Workflow file for this run

name: "Release dev container features"
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
steps:
- uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: "Publish"
uses: devcontainers/action@v1
with:
publish-features: "true"
base-path-to-features: "./src"
features-namespace: "atty303/devcontainer-features"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}