Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lichie567 committed Aug 15, 2024
0 parents commit 5c08c70
Show file tree
Hide file tree
Showing 15 changed files with 1,523 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
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']
36 changes: 36 additions & 0 deletions .github/workflows/build-debug.yml
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
77 changes: 77 additions & 0 deletions .github/workflows/release.yml
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
Loading

0 comments on commit 5c08c70

Please sign in to comment.