Skip to content

Commit 7de72d5

Browse files
Add release & release docs to the GH Actions workflow
Remove these tasks from Drone workflow
1 parent 755a81f commit 7de72d5

File tree

2 files changed

+141
-44
lines changed

2 files changed

+141
-44
lines changed

.drone.yml

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -139,51 +139,51 @@ steps:
139139
# target:
140140
# - nightly
141141

142-
- name: publish_release
143-
pull: default
144-
image: lampepfl/dotty:2020-01-22-2
145-
depends_on:
146-
- test
147-
- test_bootstrapped
148-
- community_build
149-
- test_sbt
150-
- test_java11
151-
commands:
152-
- ./project/scripts/sbt dist-bootstrapped/packArchive
153-
- ./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease"
154-
environment:
155-
PGP_PW:
156-
from_secret: pgp_pw
157-
PGP_SECRET:
158-
from_secret: pgp_secret
159-
RELEASEBUILD: yes
160-
SONATYPE_PW:
161-
from_secret: sonatype_pw
162-
SONATYPE_USER:
163-
from_secret: sonatype_user
164-
when:
165-
event:
166-
- tag
142+
# - name: publish_release
143+
# pull: default
144+
# image: lampepfl/dotty:2020-01-22-2
145+
# depends_on:
146+
# - test
147+
# - test_bootstrapped
148+
# - community_build
149+
# - test_sbt
150+
# - test_java11
151+
# commands:
152+
# - ./project/scripts/sbt dist-bootstrapped/packArchive
153+
# - ./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease"
154+
# environment:
155+
# PGP_PW:
156+
# from_secret: pgp_pw
157+
# PGP_SECRET:
158+
# from_secret: pgp_secret
159+
# RELEASEBUILD: yes
160+
# SONATYPE_PW:
161+
# from_secret: sonatype_pw
162+
# SONATYPE_USER:
163+
# from_secret: sonatype_user
164+
# when:
165+
# event:
166+
# - tag
167167

168-
- name: release_documentation
169-
pull: default
170-
image: lampepfl/dotty:2020-01-22-2
171-
depends_on:
172-
- test
173-
- test_bootstrapped
174-
- community_build
175-
- test_java11
176-
- publish_release
177-
- github_release
178-
commands:
179-
- ./project/scripts/genDocs -doc-snapshot
180-
environment:
181-
BOT_TOKEN:
182-
from_secret: bot_token
183-
RELEASEBUILD: yes
184-
when:
185-
event:
186-
- tag
168+
# - name: release_documentation
169+
# pull: default
170+
# image: lampepfl/dotty:2020-01-22-2
171+
# depends_on:
172+
# - test
173+
# - test_bootstrapped
174+
# - community_build
175+
# - test_java11
176+
# - publish_release
177+
# - github_release
178+
# commands:
179+
# - ./project/scripts/genDocs -doc-snapshot
180+
# environment:
181+
# BOT_TOKEN:
182+
# from_secret: bot_token
183+
# RELEASEBUILD: yes
184+
# when:
185+
# event:
186+
# - tag
187187

188188
- name: github_release
189189
pull: default

.github/workflows/ci.yaml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,3 +311,100 @@ jobs:
311311
- name: Nightly Documentation
312312
run: |
313313
./project/scripts/genDocs -doc-snapshot
314+
315+
publish_release:
316+
runs-on: self-hosted
317+
container: akmetiuk/dotty:2020-02-12
318+
needs: [test, test_bootstrapped, community_build, test_sbt, test_java11]
319+
if: github.event_name == 'push' &&
320+
startsWith(github.event.ref, 'refs/tags/')
321+
322+
env:
323+
RELEASEBUILD: yes
324+
PGP_PW: ${{ secrets.PGP_PW }} # PGP passphrase
325+
PGP_SECRET: ${{ secrets.PGP_SECRET }} # Export your private and public PGP key to an *.asc file, take the file's contents as a string
326+
SONATYPE_PW: ${{ secrets.SONATYPE_PW }}
327+
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
328+
329+
steps:
330+
- name: Checkout cleanup script
331+
uses: actions/checkout@v2
332+
333+
- name: Cleanup
334+
run: .github/workflows/cleanup.sh
335+
336+
- name: Git Checkout
337+
uses: actions/checkout@v2
338+
339+
- name: Cache Ivy
340+
uses: actions/cache@v1.1.2
341+
with:
342+
path: /root/.ivy2/cache
343+
key: ${{ runner.os }}-ivy-${{ hashFiles('**/build.sbt') }}
344+
restore-keys: ${{ runner.os }}-ivy-
345+
346+
- name: Cache SBT
347+
uses: actions/cache@v1.1.2
348+
with:
349+
path: /root/.sbt
350+
key: ${{ runner.os }}-sbt-${{ hashFiles('project/**') }}
351+
restore-keys: ${{ runner.os }}-sbt-
352+
353+
- name: Cache Coursier and Mill
354+
uses: actions/cache@v1.1.2
355+
with:
356+
path: /root/.cache
357+
key: ${{ runner.os }}-general-${{ hashFiles('**/build.sbt') }}
358+
restore-keys: ${{ runner.os }}-general-
359+
360+
- name: Publish Nightly
361+
run: |
362+
./project/scripts/sbt dist-bootstrapped/packArchive
363+
./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease"
364+
365+
release_documentation:
366+
runs-on: self-hosted
367+
container: akmetiuk/dotty:2020-02-12
368+
needs: [publish_release]
369+
if: github.event_name == 'push' &&
370+
startsWith(github.event.ref, 'refs/tags/')
371+
env:
372+
RELEASEBUILD: yes
373+
BOT_TOKEN: ${{ secrets.BOT_TOKEN }} # If you need to change this:
374+
# Generate one at https://github.com/settings/tokens
375+
# Make sure you have the write permissions to the repo: https://github.com/lampepfl/dotty-website
376+
377+
steps:
378+
- name: Checkout cleanup script
379+
uses: actions/checkout@v2
380+
381+
- name: Cleanup
382+
run: .github/workflows/cleanup.sh
383+
384+
- name: Git Checkout
385+
uses: actions/checkout@v2
386+
387+
- name: Cache Ivy
388+
uses: actions/cache@v1.1.2
389+
with:
390+
path: /root/.ivy2/cache
391+
key: ${{ runner.os }}-ivy-${{ hashFiles('**/build.sbt') }}
392+
restore-keys: ${{ runner.os }}-ivy-
393+
394+
- name: Cache SBT
395+
uses: actions/cache@v1.1.2
396+
with:
397+
path: /root/.sbt
398+
key: ${{ runner.os }}-sbt-${{ hashFiles('project/**') }}
399+
restore-keys: ${{ runner.os }}-sbt-
400+
401+
- name: Cache Coursier and Mill
402+
uses: actions/cache@v1.1.2
403+
with:
404+
path: /root/.cache
405+
key: ${{ runner.os }}-general-${{ hashFiles('**/build.sbt') }}
406+
restore-keys: ${{ runner.os }}-general-
407+
408+
- name: Nightly Documentation
409+
run: |
410+
./project/scripts/genDocs -doc-snapshot

0 commit comments

Comments
 (0)