Skip to content

Commit

Permalink
nightly build added
Browse files Browse the repository at this point in the history
  • Loading branch information
md shahnewaz zaman committed Apr 10, 2023
1 parent e86f0b5 commit bec1eee
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/nightly-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

name: Deploy Nightly
on:
schedule:
- cron: '0 2 * * *' # run at 2 AM UTC

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test

- name: Get Allure history
uses: actions/checkout@v3
if: always()
continue-on-error: true
with:
ref: gh-pages
path: gh-pages

- name: Allure Report action from marketplace
uses: simple-elf/allure-report-action@master
if: always()
id: allure-report
with:
allure_results: allure-results
gh_pages: gh-pages
allure_report: allure-report
allure_history: allure-history

- name: Deploy report to Github Pages
if: always()
uses: peaceiris/actions-gh-pages@v3
with:
PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: allure-history

0 comments on commit bec1eee

Please sign in to comment.