Skip to content

Commit 5b40c45

Browse files
authored
Update publish workflow to use devcontainers/action (#6)
2 parents ccce2d5 + 7cba6ca commit 5b40c45

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/publish-feature.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ concurrency:
77
group: ${{ github.workflow }}
88
cancel-in-progress: true
99
jobs:
10+
test-feature:
11+
uses: ./.github/workflows/test-feature.yml
1012
publish-feature:
13+
needs:
14+
- test-feature
1115
permissions:
1216
contents: read
1317
packages: write
1418
runs-on: ubuntu-latest
1519
steps:
1620
- uses: actions/checkout@v3
17-
- uses: docker/login-action@v2
21+
- uses: devcontainers/action@v1
1822
with:
19-
registry: ghcr.io
20-
username: ${{ github.actor }}
21-
password: ${{ secrets.GITHUB_TOKEN }}
22-
- uses: devcontainers-community/publish-feature@v1
23+
publish-features: "true"
24+
base-path-to-features: "./src"
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)