-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace "alygin.vscode-tlaplus" and "alygin.vscode-tlaplus-nightly"
with "tlaplus-lang.tlaplus-lang" on Marketplace. Part of Github issue #318 #318 [Build] Signed-off-by: Markus Alexander Kuppe <[email protected]>
- Loading branch information
Showing
15 changed files
with
58 additions
and
199 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,47 @@ | ||
name: Release | ||
|
||
on: workflow_dispatch | ||
on: | ||
repository_dispatch: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
checksecret: | ||
name: check if VSCODE_MARKETPLACE_TLAPLUS_TOKEN is set in github secrets | ||
runs-on: ubuntu-latest | ||
outputs: | ||
is_MY_SECRET_set: ${{ steps.checksecret_job.outputs.is_MY_SECRET_set }} | ||
steps: | ||
- name: Check secret present | ||
id: checksecret_job | ||
env: | ||
MY_SECRET: ${{ secrets.VSCODE_MARKETPLACE_TLAPLUS_TOKEN }} | ||
run: | | ||
echo "is_MY_SECRET_set: ${{ env.MY_SECRET != '' }}" | ||
echo "::set-output name=is_MY_SECRET_set::${{ env.MY_SECRET != '' }}" | ||
build: | ||
## Do not run this action without the marketplace token present, | ||
## e.g., in a fork of this repo. | ||
needs: [checksecret] | ||
if: needs.checksecret.outputs.is_MY_SECRET_set == 'true' | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '18.19' | ||
- name: Get (latest) TLC | ||
run: wget https://nightly.tlapl.us/dist/tla2tools.jar -O tools/tla2tools.jar | ||
- name: Get (latest) CommunityModules | ||
run: wget https://github.com/tlaplus/CommunityModules/releases/latest/download/CommunityModules-deps.jar -O tools/CommunityModules-deps.jar | ||
- name: Prepare Release | ||
run: | | ||
## Create a git commit to use its date as the extension's version number below. | ||
git add tools/*.jar -f | ||
git commit -m "Latest CommunityModules and TLA+ tools" | ||
- name: Get current version | ||
id: version | ||
run: echo "::set-output name=version::$(jq -r .version package.json)" | ||
run: echo "::set-output name=version::$(git log -1 --format=%cd --date="format:%Y.%-m.%-d%H%M")" | ||
- name: Install dependencies | ||
run: | | ||
npm install | ||
|
@@ -26,26 +55,5 @@ jobs: | |
npm run lint | ||
npm test --silent | ||
- name: Publish to Marketplace | ||
run: vsce publish --pat "${{ secrets.VSCODE_MARKETPLACE_TOKEN }}" | ||
- name: Publish to Open VSX | ||
run: npx ovsx publish "vscode-tlaplus-${{ steps.version.outputs.version }}.vsix" -p "${{ secrets.OPEN_VSX_TOKEN }}" | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v${{ steps.version.outputs.version }} | ||
release_name: v${{ steps.version.outputs.version }} | ||
draft: false | ||
prerelease: false | ||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: vscode-tlaplus-${{ steps.version.outputs.version }}.vsix | ||
asset_name: vscode-tlaplus-${{ steps.version.outputs.version }}.vsix | ||
asset_content_type: application/zip | ||
run: | | ||
vsce publish $(git log -1 --format=%cd --date="format:%Y.%-m.%-d%H%M") --pat "${{ secrets.VSCODE_MARKETPLACE_TLAPLUS_TOKEN }}" |
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
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
This file was deleted.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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