This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
bump versions to v0.12.1 #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build: | |
uses: ./.github/workflows/full_build.yml | |
release: | |
runs-on: ubuntu-latest | |
needs: [build] | |
if: success() && startsWith(github.ref, 'refs/tags/') | |
permissions: | |
# Needed to work with releases | |
contents: write | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
path: artifacts | |
- name: Remove Lapce files from artifacts | |
continue-on-error: true | |
run: rm -r lapce/ | |
- name: Display structure of downloaded files | |
run: ls -R artifacts | |
- uses: ncipollo/release-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
artifacts: "artifacts/*/*" | |
allowUpdates: true | |
omitBodyDuringUpdate: true | |
omitDraftDuringUpdate: true | |
omitNameDuringUpdate: true | |
omitPrereleaseDuringUpdate: true | |
publish-vs-code: | |
runs-on: ubuntu-latest | |
needs: [build] | |
if: success() && startsWith(github.ref, 'refs/tags/') | |
steps: | |
- uses: actions/download-artifact@v3 | |
- name: Deploy to VS Code Marketplace | |
env: | |
VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }} | |
run: npx vsce publish --packagePath $(find . -type f -iname '*.vsix') | |
- name: Deploy to OpenVSX | |
env: | |
OVSX_PAT: ${{ secrets.OPENVSX_ACCESS_TOKEN }} | |
run: npx ovsx publish --packagePath $(find . -type f -iname '*.vsix') | |
publish-lapce: | |
runs-on: ubuntu-latest | |
needs: [build] | |
if: success() && startsWith(github.ref, 'refs/tags/') | |
# Since the editor/extensions are in beta and not well documented, allow | |
# this to fail | |
continue-on-error: true | |
steps: | |
- uses: actions/download-artifact@v3 | |
- name: Install Volts | |
uses: baptiste0928/cargo-install@v2 | |
with: | |
crate: volts | |
- name: Deploy to Lapce | |
working-directory: ./lapce | |
env: | |
LAPCE_TOKEN: ${{ secrets.LAPCE_PLUGINS_API_TOKEN }} | |
run: volts --token "$LAPCE_TOKEN" publish |