# Demo: S3 + Slack
# How ?
This demo plugin uses Amazon S3 to store generation data.
At every static site generation, new updates are extracted using DiffStyleDate (opens new window) from previous and current update info data.
Then new updates will be sent to Slack.
See demo plugin code (opens new window).
# npm packages
# Setup of Slack
- Create and configure Slack application.
- Grant
chat:writepermission. - Generate bot user OAuth token.
- Invite the bot user to arbitrary channel.
# Configuration
# Local site
Copy config.example.js and create config.local.js.
S3 object key: vuepress-plugin-frontmatter-update-info.demo.slack.local.json
# Production site
Register env variables:
S3_CONFIGURED(Settrueto activate)S3_REGIONS3_ACCESS_KEY_IDS3_SECRET_ACCESS_KEYS3_BUCKETSLACK_CONFIGURED(Settrueto activate)SLACK_TOKENSLACK_CHANNEL_IDSLACK_SITE_BASE_PATH
S3 object key: vuepress-plugin-frontmatter-update-info.demo.slack.gh.json
See also GitHub Actions configuration (opens new window) of this demo site.
# Demo
