Skip to content

Commit 6a77603

Browse files
authored
More renames to main
Signed-off-by: Gunnar Wagenknecht <[email protected]>
1 parent de9bcc1 commit 6a77603

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v2
1717

18-
- name: Set up JDK 11
19-
uses: actions/setup-java@v2
18+
- name: Set up JDK
19+
uses: actions/setup-java@v3
2020
with:
21-
distribution: 'zulu' # See 'Supported distributions' for available options
22-
java-version: '11'
21+
java-version: '17'
22+
distribution: 'temurin'
23+
cache: maven
2324

2425
- name: Build VSCode extension
2526
uses: actions/setup-node@v2
@@ -34,23 +35,24 @@ jobs:
3435
path: |
3536
./bazel-vscode-0.0.5.vsix
3637
key: ${{ env.cache-name }}-${{ github.run_id }}
38+
3739
publish:
3840
needs: [build]
39-
if: ${{ success() && contains(github.ref, 'master') }}
41+
if: ${{ success() && contains(github.ref, 'main') }}
4042
runs-on: ubuntu-latest
4143
steps:
4244
- uses: actions/cache@v2
4345
with:
4446
path: ./bazel-vscode-0.0.5.vsix
4547
key: ${{ env.cache-name }}-${{ github.run_id }}
4648
- name: Create tag
47-
if: contains(github.ref, 'master')
49+
if: contains(github.ref, 'main')
4850
id: create_tag
4951
run: |
5052
tag=builds-$(date +%Y%m%d-%H%M%S)
51-
echo "::set-output name=tag::$tag"
53+
echo "tag=$tag" >> $GITHUB_OUTPUT
5254
- name: Create Release
53-
if: contains(github.ref, 'master')
55+
if: contains(github.ref, 'main')
5456
id: create_release
5557
uses: actions/create-release@v1
5658
env:
@@ -61,7 +63,7 @@ jobs:
6163
draft: true
6264
prerelease: false
6365
- name: Upload Artifact
64-
if: contains(github.ref, 'master')
66+
if: contains(github.ref, 'main')
6567
uses: actions/[email protected]
6668
env:
6769
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -71,7 +73,7 @@ jobs:
7173
asset_name: bazel-vscode-0.0.5.vsix
7274
asset_content_type: application/octet-stream
7375
- name: Publish Release
74-
if: contains(github.ref, 'master')
76+
if: contains(github.ref, 'main')
7577
uses: eregon/publish-release@v1
7678
env:
7779
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)