generated from devcontainers-community/features-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (44 loc) · 1.18 KB
/
publish-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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Publish features
on:
# push:
# branches: "main"
# paths:
# - src/*/**
# - .github/workflows/publish-features.yml
workflow_dispatch:
concurrency: ${{ github.workflow }}
jobs:
list-features:
outputs:
all-features: ${{ steps.list-features.outputs.all-features }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: list-features
uses: devcontainers-community/list-features@v2
publish-feature:
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.list-features.outputs.all-features) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm install -g @devcontainers/cli
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: devcontainers-community/publish-feature@v1
with:
path: src/${{ matrix.id }}
update-readme:
needs: publish-features
permissions:
contents: write
uses: ./.github/workflows/update-readme.yml
secrets: inherit