Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kressety authored Jan 19, 2024
0 parents commit ed9c07a
Show file tree
Hide file tree
Showing 6 changed files with 523 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/packing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Packing

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Packing
run: python3 ./packing.py
- name: Create Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GH_TOKEN }}"
automatic_release_tag: main
prerelease: false
files: |
./Modpack-Translation-Zack.zip
28 changes: 28 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Sync to Codeup

on:
push:
branches:
- main

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checking out GitHub repository
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Pushing to another repository
env:
TARGET_REPO: ${{ secrets.TARGET_REPO }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
if: env.TARGET_REPO
run: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -t rsa codeup.aliyun.com >> ~/.ssh/known_hosts
git remote add target "$TARGET_REPO"
git push target HEAD:main --force
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Modpack-Translation-Zack.zip
Loading

0 comments on commit ed9c07a

Please sign in to comment.