Added scan for rift and summon doorway mastery skills #162
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 is a basic workflow to help you get started with Actions | |
name: CI | |
env: | |
VCPKG_BINARY_SOURCES: 'clear;nuget,GitHub,readwrite' | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [ master ] | |
tags: | |
- "v*.*.*" | |
pull_request: | |
branches: [ master ] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: windows-2022 | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-tags: true | |
fetch-depth: 0 | |
- uses: nuget/setup-nuget@v2 | |
with: | |
nuget-version: latest | |
- run: nuget restore "${env:GITHUB_WORKSPACE}\GW2Radial.sln" | |
- name: 'Setup NuGet Credentials' | |
shell: 'bash' | |
run: > | |
`vcpkg fetch nuget | tail -n 1` | |
sources add | |
-source "https://nuget.pkg.github.com/Friendly0Fire/index.json" | |
-storepasswordincleartext | |
-name "GitHub" | |
-username "Friendly0Fire" | |
-password "${{ secrets.GITHUB_TOKEN }}" | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: Build Release | |
if: startsWith(github.ref, 'refs/tags/v') | |
run: msbuild "${env:GITHUB_WORKSPACE}\GW2Radial.sln" /t:Build /p:Configuration=Release /p:Platform=x64 | |
- name: Build Debug | |
run: msbuild "${env:GITHUB_WORKSPACE}\GW2Radial.sln" /t:Build /p:Configuration=Debug /p:Platform=x64 | |
- name: Save nightly build from master | |
uses: actions/upload-artifact@v4 | |
if: startsWith(github.ref, 'refs/tags/v') == false | |
with: | |
name: nightly-${{ github.sha }} | |
path: | | |
bin/x64/Debug/gw2addon_gw2radial.dll | |
bin/x64/Debug/gw2addon_gw2radial.pdb | |
bin/x64/Debug/readme.md | |
- name: Move files for tag | |
if: startsWith(github.ref, 'refs/tags/v') | |
run: | | |
mkdir -p bin/x64/Release/gw2radial | |
mkdir -p bin/x64/Debug/gw2radial | |
mv bin/x64/Release/gw2addon_gw2radial.dll bin/x64/Release/gw2radial/ | |
mv bin/x64/Release/readme.md bin/x64/Release/gw2radial/ | |
mv bin/x64/Debug/gw2addon_gw2radial.dll bin/x64/Debug/gw2radial/ | |
mv bin/x64/Debug/gw2addon_gw2radial.pdb bin/x64/Debug/gw2radial/ | |
- name: Zip files for tag | |
if: startsWith(github.ref, 'refs/tags/v') | |
run: | | |
cd bin/x64/Release | |
7z a ../../gw2radial.zip gw2radial/ | |
7z a ../../gw2radial_pdb.zip gw2addon_gw2radial.pdb | |
cd ../.. | |
cd bin/x64/Debug | |
7z a ../../gw2radial_debug.zip gw2radial/ | |
cd ../.. | |
cd ../.. | |
- name: Create release draft for tag | |
if: startsWith(github.ref, 'refs/tags/v') | |
uses: softprops/action-gh-release@v2 | |
with: | |
draft: true | |
prerelease: ${{ contains(github.ref, '-pre') }} | |
files: | | |
gw2radial.zip | |
gw2radial_pdb.zip | |
gw2radial_debug.zip | |