mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-20 03:52:15 +02:00
Publish pushes against master w/SSH key
This should work even with the branch protections, and allow the version bumps for publish to commit
This commit is contained in:
parent
2a1b50a210
commit
2d2e205ca8
10
.github/workflows/publish.yml
vendored
10
.github/workflows/publish.yml
vendored
@ -40,10 +40,15 @@ jobs:
|
||||
|
||||
- name: GIT Setup
|
||||
run: |
|
||||
git config --global user.name 'AnkiDroid Releases'
|
||||
git config --global user.email 'ankidroid@ankidroid.org'
|
||||
git config --global user.name 'Mike Hardy'
|
||||
git config --global user.email 'github@mikehardy.net'
|
||||
git remote set-url origin git@github.com:$GITHUB_REPOSITORY
|
||||
shell: bash
|
||||
|
||||
- uses: webfactory/ssh-agent@v0.4.0
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
|
||||
- name: Credential Prep
|
||||
run: |
|
||||
mkdir ~/src
|
||||
@ -51,7 +56,6 @@ jobs:
|
||||
echo "${{ secrets.GOOGLE_PUBLISH_CREDENTIALS }}" | base64 -d > ~/src/AnkiDroid-GCP-Publish-Credentials.json.gz
|
||||
echo "${{ secrets.RELEASES_PUBLISH_TOKEN }}" | base64 -d > ~/src/my-github-personal-access-token.gz
|
||||
echo "${{ secrets.KEYSTORE }}" | base64 -d > ~/src/android-keystore.gz
|
||||
echo "${{ secrets.CROWDIN_API_KEY }}" | base64 -d > ~/src/crowdin_key.txt.gz
|
||||
cd ~/src
|
||||
gunzip *gz
|
||||
shell: bash
|
||||
|
Loading…
Reference in New Issue
Block a user