|
1 | 1 | name: Publish |
2 | 2 | on: |
3 | | - release: |
4 | | - types: [ created ] |
5 | | - |
| 3 | + workflow_dispatch |
6 | 4 | jobs: |
7 | 5 | build: |
8 | 6 | timeout-minutes: 30 |
9 | 7 | strategy: |
10 | 8 | fail-fast: false |
11 | 9 | runs-on: ubuntu-latest |
12 | 10 | steps: |
13 | | - - uses: actions/checkout@v2 |
14 | | - - uses: microsoft/playwright-github-action@v1 |
15 | | - - name: Set up JDK 1.8 |
16 | | - uses: actions/setup-java@v1 |
17 | | - with: |
18 | | - java-version: 1.8 |
19 | | - server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml |
20 | | - server-username: MAVEN_USERNAME # env variable for username in deploy |
21 | | - server-password: MAVEN_PASSWORD # env variable for token in deploy |
22 | | - gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import |
23 | | - gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase |
24 | | - - name: Download drivers |
25 | | - shell: bash |
26 | | - run: scripts/download_driver_for_all_platforms.sh |
27 | | - - name: Publish to Maven Central |
28 | | - run: mvn deploy --batch-mode -D skipTests --activate-profiles release --no-transfer-progress |
29 | | - env: |
30 | | - MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} |
31 | | - MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} |
| 11 | + - uses: actions/checkout@v2 |
| 12 | + - uses: microsoft/playwright-github-action@v1 |
| 13 | + - name: Set up JDK 1.8 |
| 14 | + uses: actions/setup-java@v1 |
| 15 | + with: |
| 16 | + java-version: 1.8 |
| 17 | + server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml |
| 18 | + server-username: MAVEN_USERNAME # env variable for username in deploy |
| 19 | + server-password: MAVEN_PASSWORD # env variable for token in deploy |
| 20 | + gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import |
| 21 | + gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase |
| 22 | + - name: Download drivers |
| 23 | + shell: bash |
| 24 | + run: scripts/download_driver_for_all_platforms.sh |
| 25 | + - name: Publish to Maven Central |
| 26 | + run: mvn deploy --batch-mode -D skipTests --activate-profiles release --no-transfer-progress |
| 27 | + env: |
| 28 | + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} |
| 29 | + MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} |
0 commit comments