Skip to content

Commit

Permalink
Merge pull request #105 from cyb3rpsych0s1s/chore/ci
Browse files Browse the repository at this point in the history
Update CI
  • Loading branch information
Roms1383 authored Mar 16, 2024
2 parents 0540af7 + c0acb1e commit 83b8926
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 40 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,32 @@ on:
- "book/book.toml"
- "book/pages/**"
- "**.md"
env:
MDBOOK_VERSION: '0.4.37'
MDBOOK_CODEBLOCKS_VERSION: '0.1.13'
MDBOOK_ADMONISH_VERSION: '1.15.0'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install mdbook
run: |
mkdir mdbook
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.36/mdbook-v0.4.36-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v${{ env.MDBOOK_VERSION }}/mdbook-v${{ env.MDBOOK_VERSION }}-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
echo `pwd`/mdbook >> $GITHUB_PATH
- name: Install mdbook-codeblocks
run: |
mkdir mdbook-codeblocks
curl -sSL https://github.com/Roms1383/mdbook-codeblocks/releases/download/v0.1.12/mdbook-codeblocks-v0.1.12-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook-codeblocks
curl -sSL https://github.com/Roms1383/mdbook-codeblocks/releases/download/v${{ env.MDBOOK_CODEBLOCKS_VERSION }}/mdbook-codeblocks-v${{ env.MDBOOK_CODEBLOCKS_VERSION }}-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook-codeblocks
echo `pwd`/mdbook-codeblocks >> $GITHUB_PATH
- name: Install mdbook-admonish
run: |
mkdir mdbook-admonish
curl -sSL https://github.com/tommilligan/mdbook-admonish/releases/download/v1.14.0/mdbook-admonish-v1.14.0-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook-codeblocks
curl -sSL https://github.com/tommilligan/mdbook-admonish/releases/download/v${{ env.MDBOOK_ADMONISH_VERSION }}/mdbook-admonish-v${{ env.MDBOOK_ADMONISH_VERSION }}-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook-codeblocks
echo `pwd`/mdbook-admonish >> $GITHUB_PATH
- name: Setup rust toolchain
uses: dtolnay/rust-toolchain@stable
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,22 @@ on:
- '.github'
- 'scripts/Addicted'
env:
REDSCRIPT_VERSION: '0.5.17'
DOTNET_VERSION: '8.0.x'
REDSCRIPT_VERSION: '0.5.18'
REDSCRIPT_SRC: scripts/Addicted

jobs:
redscript:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.0.x'
dotnet-version: '${{ env.DOTNET_VERSION }}'
- name: Setup REDscript
run: C:\msys64\usr\bin\wget.exe https://github.com/jac3km4/redscript/releases/download/v${{ env.REDSCRIPT_VERSION }}/redscript-cli.exe
- name: Lint code
Expand Down
39 changes: 7 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
- "beta*"
- "alpha*"
env:
WOLVENKIT_CORE_VERSION: '8.12.2'
WOLVENKIT_CLI_VERSION: '8.12.2'
WOLVENKIT_CORE_VERSION: '8.13.0'
WOLVENKIT_CLI_VERSION: '8.13.0'
DOTNET_VERSION: '8.0.x'
IS_DRAFT: ${{ startsWith(github.ref_name, 'beta') || startsWith(github.ref_name, 'alpha') }}

Expand All @@ -25,7 +25,7 @@ jobs:
with:
fetch-depth: 0
- name: Setup Just
uses: extractions/setup-just@v1
uses: extractions/setup-just@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup .NET
Expand All @@ -50,7 +50,7 @@ jobs:
filename: 'Addicted-mod-windows-${{ github.ref_name }}.zip'
directory: ./mod-windows
path: .
recursive_exclusions: ${{ (env.IS_DRAFT && 'Debug.reds debug.reds') || '' }}
recursive_exclusions: ${{ (env.IS_DRAFT && 'Debug.reds') || '' }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
Expand All @@ -75,7 +75,7 @@ jobs:
with:
fetch-depth: 0
- name: Setup Just
uses: extractions/setup-just@v1
uses: extractions/setup-just@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Bundle files
Expand All @@ -98,36 +98,11 @@ jobs:
runs-on: windows-latest
needs: [bundle-mod, bundle-translations]
steps:
- name: Download mod
- name: Download mod and translations
uses: actions/download-artifact@v4
with:
name: mod-windows-${{ github.ref_name }}
path: release
- name: Download English translations
uses: actions/download-artifact@v4
with:
name: translation-en-us-${{ github.ref_name }}
path: release
- name: Download French translations
uses: actions/download-artifact@v4
with:
name: translation-fr-fr-${{ github.ref_name }}
path: release
- name: Download Spanish translations
uses: actions/download-artifact@v4
with:
name: translation-es-es-${{ github.ref_name }}
path: release
- name: Download Chinese translations
uses: actions/download-artifact@v4
with:
name: translation-zh-cn-${{ github.ref_name }}
path: release
- name: Download Brazilian translations
uses: actions/download-artifact@v4
with:
name: translation-pt-br-${{ github.ref_name }}
path: release
merge-multiple: true
- name: Create release ${{ github.ref_name }}
uses: ncipollo/release-action@v1
with:
Expand Down

0 comments on commit 83b8926

Please sign in to comment.