Skip to content

Commit 749518b

Browse files
committed
disabled release workflow
1 parent b07a680 commit 749518b

File tree

1 file changed

+78
-78
lines changed

1 file changed

+78
-78
lines changed

.github/workflows/release.yml

+78-78
Original file line numberDiff line numberDiff line change
@@ -7,81 +7,81 @@ on:
77
types: [ prereleased, released ]
88

99
jobs:
10-
11-
# Prepare and publish the plugin to the Marketplace repository
12-
release:
13-
name: Publish Plugin
14-
runs-on: ubuntu-latest
15-
steps:
16-
17-
# Check out current repository
18-
- name: Fetch Sources
19-
uses: actions/checkout@v2.4.0
20-
with:
21-
ref: ${{ github.event.release.tag_name }}
22-
23-
# Setup Java 11 environment for the next steps
24-
- name: Setup Java
25-
uses: actions/setup-java@v2
26-
with:
27-
distribution: zulu
28-
java-version: 11
29-
cache: gradle
30-
31-
# Set environment variables
32-
- name: Export Properties
33-
id: properties
34-
shell: bash
35-
run: |
36-
CHANGELOG="$(cat << 'EOM' | sed -e 's/^[[:space:]]*$//g' -e '/./,$!d'
37-
${{ github.event.release.body }}
38-
EOM
39-
)"
40-
41-
CHANGELOG="${CHANGELOG//'%'/'%25'}"
42-
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
43-
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
44-
45-
echo "::set-output name=changelog::$CHANGELOG"
46-
47-
# Update Unreleased section with the current release note
48-
- name: Patch Changelog
49-
if: ${{ steps.properties.outputs.changelog != '' }}
50-
env:
51-
CHANGELOG: ${{ steps.properties.outputs.changelog }}
52-
run: |
53-
./gradlew patchChangelog --release-note="$CHANGELOG"
54-
55-
# Publish the plugin to the Marketplace
56-
- name: Publish Plugin
57-
env:
58-
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
59-
run: ./gradlew publishPlugin
60-
61-
# Upload artifact as a release asset
62-
- name: Upload Release Asset
63-
env:
64-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65-
run: gh release upload ${{ github.event.release.tag_name }} ./build/distributions/*
66-
67-
# Create pull request
68-
- name: Create Pull Request
69-
if: ${{ steps.properties.outputs.changelog != '' }}
70-
env:
71-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72-
run: |
73-
VERSION="${{ github.event.release.tag_name }}"
74-
BRANCH="changelog-update-$VERSION"
75-
76-
git config user.email "action@github.com"
77-
git config user.name "GitHub Action"
78-
79-
git checkout -b $BRANCH
80-
git commit -am "Changelog update - $VERSION"
81-
git push --set-upstream origin $BRANCH
82-
83-
gh pr create \
84-
--title "Changelog update - \`$VERSION\`" \
85-
--body "Current pull request contains patched \`CHANGELOG.md\` file for the \`$VERSION\` version." \
86-
--base master \
87-
--head $BRANCH
10+
#
11+
# # Prepare and publish the plugin to the Marketplace repository
12+
# release:
13+
# name: Publish Plugin
14+
# runs-on: ubuntu-latest
15+
# steps:
16+
#
17+
# # Check out current repository
18+
# - name: Fetch Sources
19+
# uses: actions/checkout@v2.4.0
20+
# with:
21+
# ref: ${{ github.event.release.tag_name }}
22+
#
23+
# # Setup Java 11 environment for the next steps
24+
# - name: Setup Java
25+
# uses: actions/setup-java@v2
26+
# with:
27+
# distribution: zulu
28+
# java-version: 11
29+
# cache: gradle
30+
#
31+
# # Set environment variables
32+
# - name: Export Properties
33+
# id: properties
34+
# shell: bash
35+
# run: |
36+
# CHANGELOG="$(cat << 'EOM' | sed -e 's/^[[:space:]]*$//g' -e '/./,$!d'
37+
# ${{ github.event.release.body }}
38+
# EOM
39+
# )"
40+
#
41+
# CHANGELOG="${CHANGELOG//'%'/'%25'}"
42+
# CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
43+
# CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
44+
#
45+
# echo "::set-output name=changelog::$CHANGELOG"
46+
#
47+
# # Update Unreleased section with the current release note
48+
# - name: Patch Changelog
49+
# if: ${{ steps.properties.outputs.changelog != '' }}
50+
# env:
51+
# CHANGELOG: ${{ steps.properties.outputs.changelog }}
52+
# run: |
53+
# ./gradlew patchChangelog --release-note="$CHANGELOG"
54+
#
55+
# # Publish the plugin to the Marketplace
56+
# - name: Publish Plugin
57+
# env:
58+
# PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
59+
# run: ./gradlew publishPlugin
60+
#
61+
# # Upload artifact as a release asset
62+
# - name: Upload Release Asset
63+
# env:
64+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
# run: gh release upload ${{ github.event.release.tag_name }} ./build/distributions/*
66+
#
67+
# # Create pull request
68+
# - name: Create Pull Request
69+
# if: ${{ steps.properties.outputs.changelog != '' }}
70+
# env:
71+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
# run: |
73+
# VERSION="${{ github.event.release.tag_name }}"
74+
# BRANCH="changelog-update-$VERSION"
75+
#
76+
# git config user.email "action@github.com"
77+
# git config user.name "GitHub Action"
78+
#
79+
# git checkout -b $BRANCH
80+
# git commit -am "Changelog update - $VERSION"
81+
# git push --set-upstream origin $BRANCH
82+
#
83+
# gh pr create \
84+
# --title "Changelog update - \`$VERSION\`" \
85+
# --body "Current pull request contains patched \`CHANGELOG.md\` file for the \`$VERSION\` version." \
86+
# --base master \
87+
# --head $BRANCH

0 commit comments

Comments
 (0)