-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTML parsing may return multiple state change for 1 token For example: ">" in "<input hidden/>" will return ATTRSTART | ELEMEND
- Loading branch information
Showing
5 changed files
with
246 additions
and
207 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: make | ||
run: make | ||
- name: publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RELEASE_FILES: dzr* | ||
run: | | ||
RELEASE_TAG="$(date +%y%m%d)" | ||
curl -s -XPOST -d '{"tag_name": "'$RELEASE_TAG'"}' \ | ||
-H "Authorization: Bearer $GITHUB_TOKEN" \ | ||
-H 'Content-Type: application/json' \ | ||
"https://api.github.com/repos/${GITHUB_REPOSITORY}/releases" || : | ||
RELEASE_ID=$(curl -s https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/$RELEASE_TAG | jq .id) | ||
echo tag=$RELEASE_TAG has id=$RELEASE_ID | ||
for RELEASE_FILE in $RELEASE_FILES; do | ||
curl -s -XPOST -T $RELEASE_FILE \ | ||
-H "Authorization: token $GITHUB_TOKEN" \ | ||
-H "Content-Type:application/octet-stream" \ | ||
"https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/$RELEASE_ID/assets?name=$RELEASE_FILE" || : | ||
done |
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
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
Oops, something went wrong.