-
Notifications
You must be signed in to change notification settings - Fork 97
35 lines (34 loc) · 1.08 KB
/
release.yml
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
name: Release
on:
workflow_dispatch:
inputs:
release-version:
description: Enter version to release (e.g., 2.0.1).
required: true
run-name: Release ${{ inputs.release-version }} by @${{ github.actor }}
jobs:
activate:
runs-on: ubuntu-latest
if: github.repository_owner == 'asciidoctor' && github.event_name == 'workflow_dispatch'
steps:
- run: echo ok go
perform:
needs: activate
runs-on: ubuntu-latest
environment: releases
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Setup release environment
run: |
echo ${{ secrets[format('GH_TOKEN_{0}', github.actor)] }} | gh auth login --with-token
echo RELEASE_VERSION=${{ github.event.inputs.release-version }} >> $GITHUB_ENV
echo RELEASE_VSCE_TOKEN=${{ secrets['VSCE_TOKEN'] }} >> $GITHUB_ENV
- name: Build, tag, and publish extension
run: ./release.sh