Skip to content

Start transitioning to Git for Windows' new Pacman repository #113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/actions/pacman-packages/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,20 @@ runs:
mkdir -p "$HOME" &&
echo '${{ inputs.priv-gpg-key }}' | tr % '\n' | gpg $GPG_OPTIONS --import &&
git config --global gpg.program "$RUNNER_TEMP/build-extra/gnupg-with-gpgkey.sh"
- uses: actions/create-github-app-token@v1
id: pacman-repo-token
with:
app-id: ${{ inputs.app-id }}
private-key: ${{ inputs.private-key }}
owner: ${{ inputs.owner }}
repositories: pacman-repo
- name: Upload Pacman packages
shell: bash
env:
GPG_OPTIONS: "--batch --yes --no-tty --list-options no-show-photos --verify-options no-show-photos --pinentry-mode loopback"
GPGKEY: ${{ inputs.gpg-key }}
azure_blobs_token: ${{ inputs.azure-blobs-token }}
GITHUB_TOKEN: ${{ steps.pacman-repo-token.outputs.token }}
run: |
"$RUNNER_TEMP"/build-extra/pacman-helper.sh quick_add pkg-x86_64/*.tar.* pkg-i686/*.tar.* pkg-aarch64/*.tar.*
- name: update check-run
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,22 +306,22 @@ jobs:
name: artifacts
path: artifacts

- name: Prepare home directory for deploying to the Pacman repository
if: env.BUILD_ONLY != 'true' && env.AZURE_BLOBS_TOKEN != ''
env:
AZURE_BLOBS_TOKEN: ${{secrets.AZURE_BLOBS_TOKEN}}
shell: bash
run: |
echo "::add-mask::$(echo "$AZURE_BLOBS_TOKEN" | base64 -w 0)" &&
echo "$AZURE_BLOBS_TOKEN" >"$HOME"/.azure-blobs-token
- uses: actions/create-github-app-token@v1
id: pacman-repo-token
with:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: pacman-repo

- name: ${{ env.BUILD_ONLY == 'true' && 'Test-deploy' || 'Deploy' }} Pacman packages
if: env.BUILD_ONLY == 'true' || env.AZURE_BLOBS_TOKEN != ''
if: env.BUILD_ONLY == 'true' || env.azure_blobs_token != ''
shell: bash
env:
GPGKEY: ${{secrets.GPGKEY}}
PACMANDRYRUN: ${{env.BUILD_ONLY}}
AZURE_BLOBS_TOKEN: ${{secrets.AZURE_BLOBS_TOKEN}}
azure_blobs_token: ${{secrets.AZURE_BLOBS_TOKEN}}
GITHUB_TOKEN: ${{ steps.pacman-repo-token.outputs.token }}
run: /usr/src/build-extra/pacman-helper.sh quick_add artifacts/*

- name: Clean up temporary files
Expand Down