Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Indy2222 committed Aug 8, 2023
1 parent a597789 commit bf11904
Showing 1 changed file with 36 additions and 28 deletions.
64 changes: 36 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ name: Nightly Release
on:
schedule:
- cron: '30 5 * * *'
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- ready_for_review

jobs:
build:
Expand Down Expand Up @@ -73,31 +81,31 @@ jobs:
path: ${{ matrix.target }}/nightly.zip


process:
name: Upload
environment: nightly
needs: build
runs-on: ubuntu-latest
steps:
- name: Download All Artifacts
uses: actions/download-artifact@v3
with:
path: nightly-builds

- name: Set up SSH
uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.DOWNLOADS_SSH_KEY }}

- name: Git clone and push
run: |
git clone git@github.com:DigitalExtinction/Downloads.git
rsync -avh nightly-builds/ Downloads/
cd Downloads
git config core.fileMode false
git config user.email "martin.indra@mgn.cz"
git config user.name "Martin Indra"
git status
git add .
git commit --amend -m "Nightly"
git push --force-with-lease origin main
# process:
# name: Upload
# environment: nightly
# needs: build
# runs-on: ubuntu-latest
# steps:
# - name: Download All Artifacts
# uses: actions/download-artifact@v3
# with:
# path: nightly-builds

# - name: Set up SSH
# uses: webfactory/ssh-agent@v0.7.0
# with:
# ssh-private-key: ${{ secrets.DOWNLOADS_SSH_KEY }}

# - name: Git clone and push
# run: |
# git clone git@github.com:DigitalExtinction/Downloads.git
# rsync -avh nightly-builds/ Downloads/
# cd Downloads
# git config core.fileMode false
# git config user.email "martin.indra@mgn.cz"
# git config user.name "Martin Indra"
# git status
# git add .
# git commit --amend -m "Nightly"
# git push --force-with-lease origin main

0 comments on commit bf11904

Please sign in to comment.