forked from GitTools/actions
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.08 KB
/
prerelease.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
36
37
38
39
40
41
42
43
44
name: prerelease
on:
release:
types: [ prereleased ]
defaults:
run:
shell: pwsh
jobs:
prerelease:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PUSH_GITHUB_TOKEN }}
- run: |
npm install
npm run build:tools
npm run build:agent:github
npm run build:agent:azure
name: Build code
- name: Install GitVersion
uses: ./gitversion/setup
with:
versionSpec: '6.1.x'
- name: Use GitVersion
id: gitversion # step id used as reference for output values
uses: ./gitversion/execute
- name: Publish To Azure Marketplace
id: publish-azure
uses: ./.github/actions/publish-azure
with:
mode: 'test'
major: ${{ steps.gitversion.outputs.major }}
minor: ${{ steps.gitversion.outputs.minor }}
patch: ${{ steps.gitversion.outputs.patch }}
token: ${{ secrets.TFX_TOKEN }}