-
Notifications
You must be signed in to change notification settings - Fork 32
77 lines (65 loc) · 2.78 KB
/
Copy pathrelease-candidate.yml
File metadata and controls
77 lines (65 loc) · 2.78 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Release Candidate
# We build release candidates using GitHub actions when a rc* tag is pushed.
# Once the vote passes for a release candidate we promote that candidate to the
# final release--we do not do a new build for final release tags. When
# triggered via workflow_dispatch the release candidate action disables
# publishing regardless of the publish setting--it should be used for testing only
on:
push:
tags:
- 'v*-rc*'
workflow_dispatch:
jobs:
release-candidate:
name: Release Candidate ${{ github.ref_name }}
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4.2.2
- name: ASF Release Candidate
id: rc
uses: apache/daffodil-infrastructure/actions/release-candidate@main
with:
tlp_dir: 'daffodil'
project_name: 'Apache Daffodil VS Code'
project_id: 'daffodil-vscode'
project_dir: 'daffodil-vscode'
gpg_signing_key: ${{ secrets.DAFFODIL_GPG_SECRET_KEY }}
svn_username: ${{ secrets.DAFFODIL_SVN_DEV_USERNAME }}
svn_password: ${{ secrets.DAFFODIL_SVN_DEV_PASSWORD }}
nexus_username: ${{ secrets.NEXUS_STAGE_DEPLOYER_USER }}
nexus_password: ${{ secrets.NEXUS_STAGE_DEPLOYER_PW }}
publish: true
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v4.6.0
with:
distribution: temurin
java-version: 17
- name: Install Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v4.4.0
with:
node-version: 20
cache: yarn
cache-dependency-path: yarn.lock
- name: Install node dependencies
run: yarn install --frozen-lockfile
- name: Create Binary Artifacts
run: |
yarn package
ARTIFACT_BIN_DIR=${{ steps.rc.outputs.artifact_dir }}/bin
mkdir -p $ARTIFACT_BIN_DIR
cp *.vsix $ARTIFACT_BIN_DIR/