-
Notifications
You must be signed in to change notification settings - Fork 37
58 lines (51 loc) · 1.73 KB
/
kibot-release-from-tag.yaml
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
name: tagged-release
on:
push:
tags:
- "v*"
env:
BOARD_NAME: "xESC"
jobs:
tagged-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: INTI-CMNB/KiBot@v2_k8
with:
config: PCB/xESC2.kibot.yaml
board: PCB/xESC2.kicad_pcb
- name: 'Fix permissions on release/'
run: sudo chmod 0777 release
# Zip the release directory and include the tag (version) in the filename
- name: Compress release directory into a versioned ZIP file
run: zip -r "release-${{ env.BOARD_NAME }}-${GITHUB_REF_NAME}.zip" release/*
- uses: actions/upload-artifact@v4
with:
name: "release-${{ env.BOARD_NAME }}-${{ github.ref_name }}" # Use the tag as the artifact name
path: release
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: "release-${{ env.BOARD_NAME }}-${{ github.ref_name }}.zip"
- name: Deploy release
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: release
destination_dir: release
- name: Deploy release_navigator
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: release_navigator
destination_dir: release_navigator
keep_files: true
- name: Deploy release_navigator index
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: release_navigator
keep_files: true