-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (35 loc) · 1.07 KB
/
buildRelease.yml
File metadata and controls
41 lines (35 loc) · 1.07 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
name: Build and Release HTML-Attribute-Folder
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout project sources
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
ref: ${{ github.ref }}
- name: Get the version
id: versions
run: echo "TAGGED_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Get branch data
uses: tj-actions/branch-names@v7
id: branches
# For debugging purposes
- name: Debug
shell: bash
run: |
echo "Version: ${{ steps.versions.outputs.TAGGED_VERSION }}"
echo "Branch : ${{ steps.branches.outputs.base_ref_branch || steps.branches.outputs.current_branch }}"
- name: Build and Release
uses: ./.github/actions/build
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ steps.versions.outputs.TAGGED_VERSION }}
# TODO Release projekt at IntelliJ's Marketplace