readSource: handle error #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Readability build and Release | |
on: | |
push: | |
branch: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Set up Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.39.x | |
- name: Deno compile CLI | |
run: | | |
deno compile --unstable --allow-read --allow-write --allow-net --allow-env --output=readability_cli readability_cli.js | |
- name: Deno compile HTTP Server | |
run: | | |
deno compile --unstable --allow-read --allow-write --allow-net --allow-env --output=readability_httpserver readability_httpserver.js | |
- name: Get current date | |
id: date | |
run: echo "date=$(date +'%Y_%m_%d_%H_%M_%S')" >> $GITHUB_OUTPUT | |
- name: Create or Update release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release delete latest-release --yes || true | |
gh release create latest-release readability_httpserver readability_cli \ | |
--repo="$GITHUB_REPOSITORY" \ | |
--title="${GITHUB_REPOSITORY#*/} latest release" \ | |
--notes "Generated on ${{ steps.date.outputs.date }}" |