Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs #24

Merged
merged 4 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Crystal CI
on:
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: crystal-lang/install-crystal@v1
with:
crystal: 1.6.2
- name: Download source
uses: actions/checkout@v4
- name: Install dependencies
run: shards install
- name: Run tests
run: crystal spec
51 changes: 51 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Crystal Docs Generation

on:
push:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: crystal-lang/install-crystal@v1
with:
crystal: 1.6.2
- uses: actions/checkout@v4
- name: Generate docs
run: crystal docs
- name: Move docs to _site
run: mv docs/ _site/
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Pauline De Polonia <paudepolonia000@yahoo.com>
Copyright (c) 2022-2024 Hostari Philippines, Inc. <eng@hostari.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# thunderstore_downloader

A crystal wrapper to download and unzip thunderstore package versions and walk through each files within the folder to get their SHA256 hashes.
Downloads and unzips thunderstore package versions and walks through each file within the folder to get its SHA256 hash.

## Installation

Expand All @@ -20,12 +20,6 @@ A crystal wrapper to download and unzip thunderstore package versions and walk t
require "thunderstore_downloader"
```

TODO: Write usage instructions here

## Development

TODO: Write development instructions here

## Contributing

1. Fork it (<https://github.com/your-github-user/thunderstore_downloader/fork>)
Expand All @@ -36,4 +30,5 @@ TODO: Write development instructions here

## Contributors

- [Pauline De Polonia](https://github.com/your-github-user) - creator and maintainer
- [Pauline De Polonia](https://github.com/paula4230) - creator
- [Xavi Ablaza](https://github.com/xaviablaza) - maintainer
5 changes: 3 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: thunderstore_downloader
version: 0.1.0
version: 1.0.0

authors:
- Pauline De Polonia <[email protected]>
- Xavi Ablaza <[email protected]>

crystal: 1.4.1
crystal: ~> 1.6.2

license: MIT
2 changes: 1 addition & 1 deletion src/thunderstore_downloader.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require "json"
require "http/client"

module ThunderstorePackageDownloader
VERSION = "0.1.0"
VERSION = "1.0.0"
end

require "./thunderstore_downloader/**"