GeezerVison is showing github.com — Fix CI by removing deploy job; add manual deploy workflow · codice/jcodec@f1aef4f
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml +1-44Lines changed: 1 addition & 44 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
9 | 9 | branches: |
10 | 10 | - master |
11 | 11 | - '[0-9]+.[0-9]+.x' |
12 | | - schedule: |
13 | | - - cron: '0 18 * * *' |
14 | 12 |
|
15 | 13 | concurrency: |
16 | 14 | group: ${{ github.workflow }}-${{ github.ref }} |
|
59 | 57 | - name: Build |
60 | 58 | run: mvn clean install $MAVEN_CLI_OPTS -DskipTests |
61 | 59 |
|
62 | | - deploy: |
63 | | - needs: full-build |
64 | | - if: | |
65 | | - github.event_name != 'pull_request' && |
66 | | - (github.ref == 'refs/heads/master' || contains(github.ref, '.x')) |
67 | | - runs-on: ubuntu-latest |
68 | | - environment: production |
69 | | - permissions: |
70 | | - packages: write |
71 | | - steps: |
72 | | - - name: Checkout |
73 | | - uses: actions/checkout@v4 |
74 | | - |
75 | | - - name: Set up JDK 17 |
76 | | - uses: actions/setup-java@v4 |
77 | | - with: |
78 | | - java-version: '17' |
79 | | - distribution: 'temurin' |
80 | | - cache: maven |
81 | | - |
82 | | - - name: Configure Maven settings |
83 | | - |
84 | | - with: |
85 | | - servers: | |
86 | | - [{ |
87 | | - "id": "releases", |
88 | | - "username": "${{ github.actor }}", |
89 | | - "password": "${{ secrets.GITHUB_TOKEN }}" |
90 | | - }, |
91 | | - { |
92 | | - "id": "snapshots", |
93 | | - "username": "${{ github.actor }}", |
94 | | - "password": "${{ secrets.GITHUB_TOKEN }}" |
95 | | - }] |
96 | | -
|
97 | | - - name: Deploy |
98 | | - run: | |
99 | | - mvn deploy $MAVEN_CLI_OPTS \ |
100 | | - -DskipTests=true \ |
101 | | - -DretryFailedDeploymentCount=10 \ |
102 | | - -DaltReleaseDeploymentRepository=releases::https://maven.pkg.github.com/codice/jcodec \ |
103 | | - -DaltSnapshotDeploymentRepository=snapshots::https://maven.pkg.github.com/codice/jcodec |
| 60 | + # Deploy is handled by .github/workflows/release.yml (workflow_dispatch) |
Collapse file
Copy file name to clipboard +50Lines changed: 50 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +name: Deploy |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + |
| 6 | +env: |
| 7 | + MAVEN_OPTS: '-Xmx4G -Xms1G -Djava.security.egd=file:/dev/./urandom' |
| 8 | + MAVEN_CLI_OPTS: '-B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn' |
| 9 | + |
| 10 | +permissions: |
| 11 | + contents: read |
| 12 | + packages: write |
| 13 | + |
| 14 | +jobs: |
| 15 | + deploy: |
| 16 | + runs-on: ubuntu-latest |
| 17 | + environment: production |
| 18 | + steps: |
| 19 | + - name: Checkout |
| 20 | + uses: actions/checkout@v4 |
| 21 | + |
| 22 | + - name: Set up JDK 17 |
| 23 | + uses: actions/setup-java@v4 |
| 24 | + with: |
| 25 | + java-version: '17' |
| 26 | + distribution: 'temurin' |
| 27 | + cache: maven |
| 28 | + |
| 29 | + - name: Configure Maven settings |
| 30 | + |
| 31 | + with: |
| 32 | + servers: | |
| 33 | + [{ |
| 34 | + "id": "releases", |
| 35 | + "username": "${{ github.actor }}", |
| 36 | + "password": "${{ secrets.GITHUB_TOKEN }}" |
| 37 | + }, |
| 38 | + { |
| 39 | + "id": "snapshots", |
| 40 | + "username": "${{ github.actor }}", |
| 41 | + "password": "${{ secrets.GITHUB_TOKEN }}" |
| 42 | + }] |
| 43 | +
|
| 44 | + - name: Deploy |
| 45 | + run: | |
| 46 | + mvn deploy $MAVEN_CLI_OPTS \ |
| 47 | + -DskipTests=true \ |
| 48 | + -DretryFailedDeploymentCount=10 \ |
| 49 | + -Dreleases.repository.url=https://maven.pkg.github.com/codice/jcodec \ |
| 50 | + -Dsnapshots.repository.url=https://maven.pkg.github.com/codice/jcodec |