-
Notifications
You must be signed in to change notification settings - Fork 5
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
f3359e0
commit fa88100
Showing
1 changed file
with
12 additions
and
66 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 |
---|---|---|
|
@@ -15,6 +15,9 @@ defaults: | |
|
||
jobs: | ||
build-trixie: | ||
strategy: | ||
matrix: | ||
devbuild: [0, 1] | ||
runs-on: ubuntu-latest | ||
container: docker.io/library/debian:trixie-slim | ||
name: Build Trixie | ||
|
@@ -42,75 +45,18 @@ jobs: | |
run: | | ||
git config --global http.sslVerify false | ||
git config --global advice.detachedHead false | ||
pwsh ./build.ps1 | ||
pwsh ./build.ps1 -BuildFromGit ${{ matrix.devbuild }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: Lingmo Artifacts hydrogen | ||
if: ${{ matrix.devbuild == 0 }} | ||
name: Lingmo Artifacts Latest Tag Build | ||
path: BuildArtifacts | ||
compression-level: 9 # maximum compression | ||
|
||
|
||
# upload: | ||
# needs: build | ||
# runs-on: ubuntu-latest | ||
# name: Update to repo | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
|
||
# - uses: actions/download-artifact@v4 | ||
# with: | ||
# # Destination path. Supports basic tilde expansion. | ||
# # Optional. Default is $GITHUB_WORKSPACE | ||
# path: ./zips | ||
|
||
# # The repository owner and the repository name joined together by "/". | ||
# # If github-token is specified, this is the repository that artifacts will be downloaded from. | ||
# # Optional. Default is ${{ github.repository }} | ||
# repository: ${{ github.repository }} | ||
|
||
# # The id of the workflow run where the desired download artifact was uploaded from. | ||
# # If github-token is specified, this is the run that artifacts will be downloaded from. | ||
# # Optional. Default is ${{ github.run_id }} | ||
# run-id: ${{ github.run_id }} | ||
|
||
# - name: Prepare envs | ||
# run: | | ||
# sudo apt update && sudo apt install reprepro gnupg | ||
# echo "${{ secrets.GPG_SIGN_KEY }}" >> key.key | ||
# gpg --import key.key | ||
|
||
# - name: Clone repo | ||
# run: | | ||
# git clone https://github.com/LingmoOS-Testing/lingmo-rolling-mirror.git pkg_site | ||
# DEB_FILE_DIR="$(pwd)/zips" | ||
|
||
# rm -rf pkg_site/devrepo/* | ||
# cd pkg_site/helpers | ||
# bash init_repo.sh | ||
|
||
# git checkout --orphan latest_branch | ||
|
||
# DEB_FILES=$(find $DEB_FILE_DIR -type f -name '*.deb') | ||
# for debfile in $DEB_FILES; do | ||
# bash add_deb.sh "$debfile" | ||
# done | ||
# cd .. | ||
|
||
# git config --global user.email "[email protected]" | ||
# git config --global user.name "Lingmo Automation Packer" | ||
# git add . && git commit -m "Update Packages By Actions $(date)" | ||
|
||
# git branch -D master | ||
# git branch -m master | ||
|
||
# - name: Push changes | ||
# uses: ad-m/github-push-action@9870d48124da805820c70ebc6ba563c715551019 | ||
# with: | ||
# github_token: ${{ secrets.API_GITHUB_TOKEN }} | ||
# repository: "LingmoOS-Testing/lingmo-rolling-mirror" | ||
# directory: "./pkg_site" | ||
# branch: 'master' | ||
# force: true | ||
|
||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
if: ${{ matrix.devbuild == 1 }} | ||
name: Lingmo Artifacts Nightly Build | ||
path: BuildArtifacts | ||
compression-level: 9 # maximum compression |