chore: Remove publish pipeline in Github Actions (#898)

This commit is contained in:
Shi Chen 2021-08-03 09:36:43 +08:00 коммит произвёл GitHub
Родитель 8b4f7e6f10
Коммит d6b6d726a1
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 0 добавлений и 90 удалений

90
.github/workflows/main.yml поставляемый
Просмотреть файл

@ -203,93 +203,3 @@ jobs:
build-root-directory: extension/test-fixtures/gradle-kotlin-default-build-file
wrapper-directory: extension/test-fixtures/gradle-kotlin-default-build-file
wrapper-cache-enabled: false
publish-beta-extension:
needs: [test-extension]
name: Publish BETA extension
runs-on: ubuntu-20.04
if: github.event_name == 'push' && contains(github.ref, '/release/')
steps:
- uses: actions/checkout@v2
- name: Use Node 14.15.4
uses: actions/setup-node@v1
with:
node-version: 14.15.4
- name: Build & prepare extension
uses: eskatos/gradle-command-action@v1
with:
arguments: prepareForBetaRelease --no-daemon
wrapper-cache-enabled: false
- name: Publish types
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cd npm-package
version="0.0.$GITHUB_RUN_ID"
echo "Setting package version $version"
npm --no-git-tag-version version "$version"
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc
npm publish
- name: Publish extension
env:
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
run: |
cd extension
version="0.0.$GITHUB_RUN_ID"
echo "Setting package version $version"
npm --no-git-tag-version version "$version"
npx vsce publish -p "$AZURE_TOKEN"
publish-extension:
needs: [test-extension]
name: Publish extension
runs-on: ubuntu-20.04
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/checkout@v2
- name: Use Node 14.15.4
uses: actions/setup-node@v1
with:
node-version: 14.15.4
- name: Cache gradle
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Cache npm cache directory
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build & prepare extension
uses: eskatos/gradle-command-action@v1
with:
arguments: prepareForRelease --no-daemon
wrapper-cache-enabled: false
- name: Publish extension
env:
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
OPENVSX_TOKEN: ${{ secrets.OPENVSX_TOKEN }}
run: |
cd extension
tag=${GITHUB_REF#refs/tags/}
echo "Setting package version $tag"
npm --no-git-tag-version version "$tag"
npx vsce publish -p "$AZURE_TOKEN"
npx ovsx publish -p "$OPENVSX_TOKEN"
- name: Publish types
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cd npm-package
tag=${GITHUB_REF#refs/tags/}
echo "Setting package version $tag"
npm --no-git-tag-version version "$tag"
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc
npm publish