Skip to content

Commit

Permalink
Test push to gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
elsid committed Mar 29, 2024
1 parent 1fea02d commit e5d7b85
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,43 @@ env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"

jobs:
test_push_to_gitlab:
strategy:
fail-fast: true

runs-on: windows-latest

steps:
- name: Setup ssh-agent
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}

- name: Push test file to gitlab
shell: bash
run: |
echo 'gitlab.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFSMqzJeV9rUzU4kWitGjeR4PWSa29SPqJ1fVkhtj3Hw9xjLVXVYrU9QlYWrOLXBpQ6KWjbjTDTdDkoohFzgbEY=' >> ~/.ssh/known_hosts
git config --global user.email '[email protected]'
git config --global user.name 'openmw-deps-build'
git config --global user.signkey 8D5838140D294CE3C17ED6AE31FC2142D139BD97
env GIT_LFS_SKIP_SMUDGE=1 git clone [email protected]:elsid/openmw-deps.git
cd openmw-deps
echo ${{ github.sha }} > test.txt
git checkout -b test-${{ github.sha }}
git lfs track test.txt
git add test.txt
git commit -m 'Add test.txt at ${{ github.sha }}'
git push origin test-${{ github.sha }}
static:
if: false

strategy:
fail-fast: true

Expand Down Expand Up @@ -83,6 +119,8 @@ jobs:
# git push origin openmw-deps-vcpkg-x64-windows-static-${{ github.sha }}

dynamic:
if: false

strategy:
fail-fast: true

Expand Down

0 comments on commit e5d7b85

Please sign in to comment.