-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5c08c70
Showing
15 changed files
with
1,523 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# These are supported funding model platforms | ||
|
||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: lichie | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Debug Build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build-debug: | ||
runs-on: windows-latest | ||
|
||
env: | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
|
||
steps: | ||
- name: Checkout and initialise | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup Dalamud | ||
shell: pwsh | ||
run: | | ||
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/latest.zip -OutFile ./latest.zip | ||
Expand-Archive -Path ./latest.zip ./dalamud | ||
- name: Restore project dependencies | ||
run: dotnet restore --verbosity normal | ||
|
||
- name: Build Debug | ||
run: dotnet build --no-restore --verbosity normal --configuration Debug | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: GlamApply-debug-${{ github.sha }} | ||
path: | | ||
GlamApply/bin/x64/Debug | ||
!GlamApply/bin/x64/Debug/GlamApply |
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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build-release: | ||
runs-on: windows-latest | ||
|
||
env: | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
|
||
steps: | ||
- name: Checkout and initialise | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup Dalamud | ||
shell: pwsh | ||
run: | | ||
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/latest.zip -OutFile ./latest.zip | ||
Expand-Archive -Path ./latest.zip ./dalamud | ||
- name: Restore project dependencies | ||
run: dotnet restore --verbosity normal | ||
|
||
- name: Build Release | ||
run: dotnet build --no-restore --verbosity normal --configuration Release | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: GlamApply-release-${{ github.sha }} | ||
path: | | ||
GlamApply/bin/x64/Release | ||
!GlamApply/bin/x64/Release/GlamApply | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: GlamApply ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
asset_path: ./GlamApply/bin/x64/Release/GlamApply/latest.zip | ||
asset_name: GlamApply.zip | ||
asset_content_type: application/zip | ||
|
||
- name: Write out repo.json | ||
run: | | ||
$ver = '${{ github.ref }}' -replace 'refs/tags/','' | ||
$path = './base_repo.json' | ||
$new_path = './repo.json' | ||
$content = get-content -path $path | ||
$content = $content -replace '1.0.0.0',$ver | ||
set-content -Path $new_path -Value $content | ||
- name: Commit repo.json | ||
run: | | ||
git config --global user.name "Actions User" | ||
git config --global user.email "[email protected]" | ||
git fetch origin main && git checkout main | ||
git add repo.json | ||
git commit -m "[CI] Updating repo.json for ${{ github.ref }}" || true | ||
git push origin main || true |
Oops, something went wrong.