-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move things
- Loading branch information
Showing
9 changed files
with
87 additions
and
12 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,34 @@ | ||
name: release | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- '**' | ||
tags-ignore: | ||
- '*.*' | ||
pull_request: | ||
branches: | ||
- '**' | ||
tags-ignore: | ||
- '*.*' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: vars | ||
run: | | ||
echo ::set-output name=VERSION::build-${GITHUB_RUN_NUMBER}-git-${GITHUB_SHA:0:7} | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.x | ||
- run: chmod +x megane | ||
- run: ./megane bundle | ||
env: | ||
MOD_VERSION: ${{ steps.vars.outputs.VERSION }} | ||
- uses : actions/upload-artifact@v2 | ||
with : | ||
name : megane-${{ steps.vars.outputs.VERSION }} | ||
path : | | ||
output/*.jar | ||
input/META-INF/jars/*.jar |
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: release | ||
on: | ||
push: | ||
tags: "*" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: vars | ||
run: | | ||
echo ::set-output name=VERSION::${GITHUB_REF#refs/*/} | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.x | ||
- run: chmod +x megane | ||
- run: ./megane bundle curseforge | ||
env: | ||
MOD_VERSION: ${{ steps.vars.outputs.VERSION }} | ||
CURSEFORGE_API: ${{ secrets.CURSEFORGE_API }} | ||
- uses: alexellis/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
asset_paths: '["output/*.jar", "input/META-INF/jars/*.jar"]' | ||
- uses : actions/upload-artifact@v2 | ||
with : | ||
name : megane-${{ steps.vars.outputs.VERSION }} | ||
path : | | ||
output/*.jar | ||
input/META-INF/jars/*.jar |
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,8 @@ | ||
#!/usr/bin/sh | ||
|
||
pip3 install urllib3 > /dev/null 2>&1 | ||
|
||
for arg in "$@"; do | ||
echo "Running $arg" | ||
python3 "./scripts/${arg}.py" | ||
done |
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
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
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,6 @@ | ||
import sys | ||
from os.path import dirname, realpath | ||
|
||
|
||
def get_base_dir(): | ||
return dirname(dirname(realpath(sys.argv[0]))) |