Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| edfdc40aea | |||
| e4ab003a9d |
@@ -29,20 +29,19 @@ jobs:
|
|||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o "dist/judge-linux-amd64" ./cmd/cli
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o "dist/judge-linux-amd64" ./cmd/cli
|
||||||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o "dist/judge-windows-amd64.exe" ./cmd/cli
|
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o "dist/judge-windows-amd64.exe" ./cmd/cli
|
||||||
|
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w" -o "dist/judge-darwin-arm64" ./cmd/cli
|
||||||
|
|
||||||
- name: Build VS Code extension
|
- name: Build VS Code extension
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
npm install -g @vscode/vsce
|
npm install -g @vscode/vsce
|
||||||
cd editor/vscode-jdg
|
cd editor/vscode-jdg
|
||||||
vsce package -o "../../dist/jdg-language-${{ github.ref_name }}.vsix"
|
vsce package --allow-missing-repository -o "../../dist/jdg-language.vsix"
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: https://gitea.com/actions/gitea-release-action@main
|
uses: https://gitea.com/actions/gitea-release-action@main
|
||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
dist/judge-linux-amd64
|
dist/*
|
||||||
dist/judge-windows-amd64.exe
|
|
||||||
dist/jdg-language-${{ github.ref_name }}.vsix
|
|
||||||
api_key: ${{ secrets.RELEASE_TOKEN }}
|
api_key: ${{ secrets.RELEASE_TOKEN }}
|
||||||
title: ${{ github.ref_name }}
|
title: ${{ github.ref_name }}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
"description": "Syntax highlighting for judge test-suite files",
|
"description": "Syntax highlighting for judge test-suite files",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"publisher": "judge",
|
"publisher": "judge",
|
||||||
|
"repository": {"type": "git", "url": "https://gitea.mkorn.me/admin/judge"},
|
||||||
"engines": { "vscode": "^1.60.0" },
|
"engines": { "vscode": "^1.60.0" },
|
||||||
"categories": ["Programming Languages"],
|
"categories": ["Programming Languages"],
|
||||||
"contributes": {
|
"contributes": {
|
||||||
|
|||||||
Reference in New Issue
Block a user