diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-12-17 14:45:30 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-12-17 14:45:30 -0500 |
commit | 49664005f8a0d4dd32771a8f13a2c21a9ef2d48c (patch) | |
tree | be2846a06ddcb7d817400e9fb0564293328cea89 | |
parent | 62e90e69cb272c5c546e4d778adfdd17c5e6987f (diff) |
attempt to fix gh action
-rw-r--r-- | .github/workflows/aur.yml | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/.github/workflows/aur.yml b/.github/workflows/aur.yml index dbca52a..65292b4 100644 --- a/.github/workflows/aur.yml +++ b/.github/workflows/aur.yml @@ -3,28 +3,30 @@ name: Publish to the AUR on: workflow_dispatch: # Manual trigger via GitHub UI jobs: - build-and-run: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Build the Docker image - run: | - docker build -t aur_publisher ./releases/aur - - name: Run the Docker container - env: - AUR_PRIVATE_KEY: ${{ secrets.AUR_PRIVATE_KEY }} - AUR_PUBLIC_KEY: ${{ secrets.AUR_PUBLIC_KEY }} - PKG_REPO_URI: https://github.com/ChausseBenjamin/termpicker - PKG_NAME: termpicker - GIT_USER: ChausseBenjamin - run: |- - docker run --rm \ - -e AUR_PRIVATE_KEY=$AUR_PRIVATE_KEY \ - -e AUR_PUBLIC_KEY=$AUR_PUBLIC_KEY \ - -e PKG_REPO_URI=$PKG_REPO_URI \ - -e PKG_NAME=$PKG_NAME \ - -e GIT_USER=$GIT_USER \ - aur_publisher +publish-aur: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Set up Docker + uses: docker/setup-buildx-action@v2 + with: + driver: auto + - name: Build AUR Package + run: | + docker build -t aur-publisher -f releases/aur/Dockerfile . + - name: Run AUR Publisher + env: + AUR_PRIVATE_KEY: ${{ secrets.AUR_PRIVATE_KEY }} + AUR_PUBLIC_KEY: ${{ secrets.AUR_PUBLIC_KEY }} + PKG_REPO_URI: https://github.com/ChausseBenjamin/termpicker.git + PKG_NAME: termpicker + GIT_USER: ChausseBenjamin + run: |- + docker run \ + -e AUR_PRIVATE_KEY=$AUR_PRIVATE_KEY \ + -e AUR_PUBLIC_KEY=$AUR_PUBLIC_KEY \ + -e PKG_REPO_URI=$PKG_REPO_URI \ + -e PKG_NAME=$PKG_NAME \ + -e GIT_USER=$GIT_USER \ + aur-publisher |