Skip to content

Commit

Permalink
diy
Browse files Browse the repository at this point in the history
  • Loading branch information
gmugu committed Nov 21, 2023
1 parent 48f8f62 commit 8227339
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 43 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/auto_lang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Checkout alist-web
uses: actions/checkout@v3
with:
repository: 'alist-org/alist-web'
repository: 'gmugu/alist-web'
ref: main
persist-credentials: false
fetch-depth: 0
Expand All @@ -57,8 +57,8 @@ jobs:
run: |
cd alist-web
git add .
git config --local user.email "[email protected]"
git config --local user.name "IlaBot"
git config --local user.email "[email protected]"
git config --local user.name "MuGu"
git commit -m "chore: auto update i18n file" -a 2>/dev/null || :
cd ..
Expand All @@ -68,4 +68,4 @@ jobs:
github_token: ${{ secrets.MY_TOKEN }}
branch: main
directory: alist-web
repository: alist-org/alist-web
repository: gmugu/alist-web
12 changes: 6 additions & 6 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: xhofe/alist
images: mugu94/alist
- name: Replace release with dev
run: |
sed -i 's/release/dev/g' Dockerfile
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: xhofe
username: mugu94
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
Expand All @@ -50,20 +50,20 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v3
with:
repository: alist-org/with_aria2
repository: gmugu/with_aria2_ffmpeg
ref: main
persist-credentials: false
fetch-depth: 0

- name: Commit
run: |
git config --local user.email "[email protected]"
git config --local user.name "IlaBot"
git config --local user.email "[email protected]"
git config --local user.name "MuGu"
git commit --allow-empty -m "Trigger build for ${{ github.sha }}"
- name: Push commit
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.MY_TOKEN }}
branch: main
repository: alist-org/with_aria2
repository: gmugu/with_aria2_ffmpeg
27 changes: 0 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,3 @@ jobs:
with:
files: build/compress/*
prerelease: false

release_desktop:
needs: release
name: Release desktop
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
repository: alist-org/desktop-release
ref: main
persist-credentials: false
fetch-depth: 0

- name: Add tag
run: |
git config --local user.email "[email protected]"
git config --local user.name "IlaBot"
version=$(wget -qO- -t1 -T2 "https://api.github.com/repos/alist-org/alist/releases/latest" | grep "tag_name" | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g')
git tag -a $version -m "release $version"
- name: Push tags
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.MY_TOKEN }}
branch: main
repository: alist-org/desktop-release
12 changes: 6 additions & 6 deletions .github/workflows/release_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: xhofe/alist
images: mugu94/alist

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand All @@ -28,7 +28,7 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: xhofe
username: mugu94
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
Expand All @@ -49,20 +49,20 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v3
with:
repository: alist-org/with_aria2
repository: gmugu/with_aria2_ffmpeg
ref: main
persist-credentials: false
fetch-depth: 0

- name: Add tag
run: |
git config --local user.email "[email protected]"
git config --local user.name "IlaBot"
git config --local user.email "[email protected]"
git config --local user.name "MuGu"
git tag -a ${{ github.ref_name }} -m "release ${{ github.ref_name }}"
- name: Push tags
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.MY_TOKEN }}
branch: main
repository: alist-org/with_aria2
repository: gmugu/with_aria2_ffmpeg

0 comments on commit 8227339

Please sign in to comment.