Skip to content

all: document in preparation of initial release #1

all: document in preparation of initial release

all: document in preparation of initial release #1

Workflow file for this run

# Modelled on the corresponding typst-lsp workflow in
# https://github.com/nvarner/typst-lsp/blob/master/.github/workflows/release.yml.
#
# typst-lsp is released under the MIT license, copyright Nathan Varner.
name: Release
on:
push:
tags:
- '*'
jobs:
build:
uses: ./.github/workflows/full-build.yml

Check failure on line 15 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. In .github/workflows/release.yml (Line: 15, Col: 11): Error from called workflow jo3-l/yag-template-lsp/.github/workflows/full-build.yml@59b1bf59375e83215a83d308645f855392c17b5e (Line: 59, Col: 9): Unexpected value 'working-directory'

Check failure on line 15 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. In .github/workflows/release.yml (Line: 15, Col: 11): Error from called workflow jo3-l/yag-template-lsp/.github/workflows/full-build.yml@59b1bf59375e83215a83d308645f855392c17b5e (Line: 59, Col: 9): Unexpected value 'working-directory'
release:
runs-on: ubuntu-latest
needs: [build]
if: success() && startsWith(github.ref, 'refs/tags/')
permissions:
# needed to create releases
contents: write
steps:
- uses: actions/download-artifact@v3
with:
path: artifacts
- 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-vscode:
runs-on: ubuntu-latest
needs: [build]
if: success() && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v3
- name: Deploy to VSCode Marketplace
env:
VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}
run: pnpm exec vsce publish --packagePath $(find . -type f -iname '*.vsix')
- name: Deploy to OpenVSX
env:
OVSX_PAT: ${{ secrets.OPENVSX_ACCESS_TOKEN }}
run: pnpm exec ovsx publish --packagePath $(find . -type f -iname '*.vsix')