-
Notifications
You must be signed in to change notification settings - Fork 14
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
1 parent
39b2700
commit 23d6647
Showing
9 changed files
with
189 additions
and
15 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 file was deleted.
Oops, something went wrong.
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,31 @@ | ||
name: Export Packwiz | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
packwiz-export: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install mcman | ||
run: | | ||
wget https://github.com/ParadigmMC/mcman/releases/latest/download/mcman | ||
sudo mv ./mcman /usr/bin/ | ||
sudo chmod +x /usr/bin/mcman | ||
- name: Run mcman export packwiz | ||
run: mcman export packwiz | ||
env: | ||
MODPACK_VERSION: ${{ github.sha }} | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Update packwiz pack |
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,53 @@ | ||
name: Test server | ||
|
||
on: | ||
push: | ||
branches: main | ||
|
||
jobs: | ||
test: | ||
env: | ||
upload_to_mclogs: true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
- name: Cache | ||
id: cache | ||
uses: actions/cache@v3 | ||
with: | ||
key: mcman-build-${{ hashFiles('server.toml') }} | ||
path: | | ||
./server | ||
~/.cache/mcman | ||
restore-keys: | | ||
mcman-build-${{ hashFiles('server.toml') }} | ||
mcman-build- | ||
mcman- | ||
- name: Install mcman | ||
run: | | ||
wget https://github.com/ParadigmMC/mcman/releases/latest/download/mcman | ||
sudo mv ./mcman /usr/bin/ | ||
sudo chmod +x /usr/bin/mcman | ||
- name: Test the server | ||
id: test | ||
run: | | ||
mcman run --test | ||
- name: Archive log | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: latest.log | ||
path: | | ||
server/logs/latest.log | ||
- name: Archive crash reports | ||
uses: actions/upload-artifact@v3 | ||
if: steps.test.outcome == 'failure' | ||
with: | ||
name: crash | ||
path: | | ||
server/crash-reports/* |
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 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,16 @@ | ||
use std::{path::Path, io::Write}; | ||
|
||
use anyhow::Result; | ||
use std::fs::File; | ||
|
||
use crate::{util::env::get_git_root, app::App}; | ||
|
||
pub fn run(app: &App) -> Result<()> { | ||
let path = Path::new(&get_git_root()?.unwrap_or(".".to_owned())).join(".github").join("workflows"); | ||
|
||
let mut f = File::create(path.join("packwiz.yml"))?; | ||
f.write_all(include_bytes!("../../../res/workflows/packwiz.yml"))?; | ||
app.success("packwiz.yml workflow created"); | ||
|
||
Ok(()) | ||
} |
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,16 @@ | ||
use std::{path::Path, io::Write}; | ||
|
||
use anyhow::Result; | ||
use std::fs::File; | ||
|
||
use crate::{util::env::get_git_root, app::App}; | ||
|
||
pub fn run(app: &App) -> Result<()> { | ||
let path = Path::new(&get_git_root()?.unwrap_or(".".to_owned())).join(".github").join("workflows"); | ||
|
||
let mut f = File::create(path.join("test.yml"))?; | ||
f.write_all(include_bytes!("../../../res/workflows/test.yml"))?; | ||
app.success("test.yml workflow created"); | ||
|
||
Ok(()) | ||
} |
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