mirror of
https://github.com/h7x4/usbip-dkms-devcontainer-feature.git
synced 2025-05-22 07:52:07 +02:00
Add workflows to validate and release the feature
This commit is contained in:
parent
934e80a96e
commit
d825017b6a
.github/workflows
45
.github/workflows/release-feature.yml
vendored
Normal file
45
.github/workflows/release-feature.yml
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
name: "Release dev-container feature"
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
update-docs:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
-
|
||||
name: "Checkout"
|
||||
uses: actions/checkout@v3
|
||||
-
|
||||
name: "Generate docs"
|
||||
uses: devcontainers/action@v1
|
||||
with:
|
||||
base-path-to-features: "./features"
|
||||
generate-docs: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
-
|
||||
name: "Commit docs if changed"
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "Update docs"
|
||||
file_pattern: "features/**/README.md"
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: update-docs
|
||||
permissions:
|
||||
contents: write
|
||||
packages: write
|
||||
steps:
|
||||
-
|
||||
name: "Checkout"
|
||||
uses: actions/checkout@v3
|
||||
-
|
||||
name: "Build and release"
|
||||
uses: devcontainers/action@v1
|
||||
with:
|
||||
base-path-to-features: "./features"
|
||||
publish-features: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
19
.github/workflows/validate-feature.yml
vendored
Normal file
19
.github/workflows/validate-feature.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
name: "Validate dev-container feature"
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'features/**'
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: "Checkout"
|
||||
uses: actions/checkout@v3
|
||||
-
|
||||
name: "Build"
|
||||
uses: devcontainers/action@v1
|
||||
with:
|
||||
base-path-to-features: "./features"
|
||||
validate-only: true
|
Loading…
x
Reference in New Issue
Block a user