Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'Generate markdown documentation' command #31

Merged
merged 10 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 37 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,63 @@ jobs:
with:
node-version: 14.x

- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0"

- name: Get current version
run: |
VERSION=$(node -p "require('./package.json').version")
echo VERSION=$VERSION >> $GITHUB_ENV
echo VERSION_TAG=v$VERSION >> $GITHUB_ENV

- name: Check if tag exists
id: check_tag
run: echo PERFORM_PUBLISH=$(git rev-parse --verify -q "refs/tags/${{ env.VERSION_TAG }}" >> /dev/null && echo false || echo true) >> $GITHUB_ENV


- name: Add GitHub NuGet Registry
if: ${{ env.PERFORM_PUBLISH == 'true' }}
run: dotnet nuget add source --username "GeoWerkstatt-Build" --password "%GITHUB_TOKEN%" --store-password-in-clear-text --name github "https://nuget.pkg.github.com/GeoWerkstatt/index.json"

- name: Restore packages
if: ${{ env.PERFORM_PUBLISH == 'true' }}
run: dotnet restore ./language-server/src
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build language-server
if: ${{ env.PERFORM_PUBLISH == 'true' }}
run: dotnet build --no-restore "-p:VersionPrefix=${{ env.VERSION }}" ./language-server/src

- name: Run language-server tests
if: ${{ env.PERFORM_PUBLISH == 'true' }}
run: dotnet test --no-build ./language-server/src

- name: Publish language-server
if: ${{ env.PERFORM_PUBLISH == 'true' }}
run: |
for rid in win-x64 linux-x64 osx-x64
do
dotnet publish ./language-server/src/Geowerkstatt.Interlis.LanguageServer --self-contained -c Release -r $rid "-p:VersionPrefix=${{ env.VERSION }}" -o ./language-server/bin/$rid
done

- name: Install packages
if: ${{ env.PERFORM_PUBLISH == 'true' }}
run: npm ci

- name: Publish extension
if: ${{ env.PERFORM_PUBLISH == 'true' }}
run: npx vsce publish
env:
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

- name: Tag current version
if: ${{ env.PERFORM_PUBLISH == 'true' }}
run: |
run: |
git config --local user.email "[email protected]"
git config --local user.name "GeoWerkstatt-Build"
git tag ${{ env.VERSION_TAG }}
git tag ${{ env.VERSION_TAG }}

- name: Push version tag
if: ${{ env.PERFORM_PUBLISH == 'true' }}
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,9 @@ out/

### vsce Output ###
**/*.vsix

# .Net publish output
bin/

# NuGet config file
[Nn]u[Gg]et.[Cc]onfig
5 changes: 5 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.github/
.vscode/
src/
language-server/src/
[Nn]u[Gg]et.[Cc]onfig
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Change Log
### vNext

* Add _Generate markdown documentation_ command using language server.

### 0.1.6 - 14.10.2022

* Fix _Go to Implementation_ not retrieving Models in subrepositories.
Expand Down
Loading
Loading