Skip to content

Commit

Permalink
Merge pull request #143 from lf-lang/nightly-build
Browse files Browse the repository at this point in the history
Updated nightly workflow to tag and publish release on GitHub
  • Loading branch information
lhstrh committed Sep 24, 2023
2 parents 3ed6678 + efb1c10 commit 2bfcfa7
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,29 @@ jobs:
with:
submodules: recursive
fetch-depth: 1
- name: Set the time zone to Berkeley, CA
run: |
sudo timedatectl set-timezone America/Los_Angeles
- name: Configure Git for francabot
uses: lf-lang/lingua-franca/.github/actions/setup-francabot@master
with:
gpg-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Pull the latest lingua-franca submodule
run: |
git checkout master
git pull
git submodule update --init --recursive
working-directory: lingua-franca
- name: Set the time zone to Berkeley, CA
- name: Commit to the `latest` branch
run: |
sudo timedatectl set-timezone America/Los_Angeles
git add lingua-franca
git status --porcelain | grep . && git commit -m 'Update lingua-franca submodule'
git switch latest || git checkout -b latest
git reset --hard HEAD@{1}
git push -f
shell: bash
if: ${{ github.event.inputs.dry-run != 'true' }}
- name: Set the nightly version number
run: |
./.github/scripts/nightly-version.sh
Expand All @@ -39,6 +53,16 @@ jobs:
package: true
partial: true
pre-release: true
- name: Deploy nightly release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: 'nightly'
prerelease: true
title: "Lingua Franca VS Code Nightly"
files: |
vscode-lingua-franca-*.vsix
if: ${{ github.event.inputs.dry-run != 'true' }}
- name: Upload build artifact (dry run only)
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 2bfcfa7

Please sign in to comment.