You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.2 KiB

  1. name: Release CI
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. build:
  8. name: Build and release
  9. runs-on: ubuntu-latest
  10. if: "!contains(github.event.head_commit.message, '[ci skip]')"
  11. steps:
  12. - uses: actions/checkout@v1
  13. - name: Set up JDK 1.8
  14. uses: actions/setup-java@v1
  15. with:
  16. java-version: 1.8
  17. - name: Setup node 10
  18. uses: actions/setup-node@v1
  19. with:
  20. node-version: '10.x'
  21. - name: Cache for maven
  22. uses: actions/cache@v1
  23. with:
  24. path: ~/.m2/repository
  25. key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
  26. restore-keys: |
  27. ${{ runner.os }}-maven-
  28. - name: Cache for npm
  29. uses: actions/cache@v1
  30. with:
  31. path: ~/.npm
  32. key: ${{ runner.os }}-node-${{ hashFiles('.github/workflows/release.yml') }}
  33. restore-keys: |
  34. ${{ runner.os }}-node-
  35. - name: Setup semantic-release
  36. run: npm install -g @conveyal/maven-semantic-release semantic-release@15 @semantic-release/exec@v3.3.8
  37. - name: Release
  38. run: semantic-release --use-conveyal-workflow --skip-maven-deploy
  39. env:
  40. GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}