-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (51 loc) · 1.64 KB
/
release.yml
File metadata and controls
60 lines (51 loc) · 1.64 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: "Release"
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
deploy:
if: ${{ github.ref_type == 'tag'}}
runs-on: ubuntu-latest
permissions:
contents: write # Need write permission to create feature tags
packages: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Fetch full history for proper git operations
- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Log in to the Container Registry
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Features
uses: devcontainers/action@v1
with:
publish-features: "true"
base-path-to-features: "./src"
generate-docs: "true"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get Trigganator token
id: trigganator
uses: actions/create-github-app-token@v3
with:
app-id: ${{ vars.TRIGGANATOR_ID }}
private-key: ${{ secrets.TRIGGANATOR_KEY }}
owner: helpers4
repositories: website
- name: Trigger website update
continue-on-error: true
uses: peter-evans/repository-dispatch@v4
with:
token: ${{ steps.trigganator.outputs.token }}
repository: helpers4/website
event-type: devcontainer-release
client-payload: '{"version": "${{ github.ref_name }}"}'